main/swclock-offset: upgrade to 0.2.3 (MR 5642)

- now installs to /usr by default
- now installs systemd service files by default
- added -systemd subpkg to handle service files

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Clayton Craft 2024-09-27 06:29:03 -07:00
parent 1d04fa02a8
commit 8018402b15
No known key found for this signature in database
GPG Key ID: 4A4CED6D7EDF950A
3 changed files with 20 additions and 4 deletions

View File

@ -1,19 +1,25 @@
# Maintainer: Jakko <jahau@rocketmail.com>
pkgname=swclock-offset
pkgver=0.2.2
pkgver=0.2.3
pkgrel=0
pkgdesc="Keep system time at an offset to a non-writable RTC"
url="https://gitlab.com/postmarketOS/swclock-offset"
arch="noarch"
license="GPL-3.0-or-later"
install="$pkgname.post-deinstall"
subpackages="$pkgname-openrc"
subpackages="$pkgname-openrc $pkgname-systemd"
source="https://gitlab.com/postmarketOS/swclock-offset/-/archive/$pkgver/swclock-offset-$pkgver.tar.gz"
options="!check" # No tests
package() {
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install_openrc
}
systemd() {
install="$subpkgname.post-install $subpkgname.pre-deinstall"
install_if="$pkgname=$pkgver-r$pkgrel systemd"
amove usr/lib/systemd
}
openrc() {
@ -22,5 +28,5 @@ openrc() {
}
sha512sums="
44f759dd2249ecce35f5baf9f432fd933e3a07b7ea425ea0f07314c7c3c94ce2d1ab7442d9bce8f03f5d436d15865ae3f4f63d3dc83cc6063af09986b7767e10 swclock-offset-0.2.2.tar.gz
51c01dc1ffc4b1bd60b1c195fdf80e603580a943535901f2780e67dd7bdba709731cf854b7ec2af3cf68e31ca002db54814ada352eb9b93fb5c62a82a48961dd swclock-offset-0.2.3.tar.gz
"

View File

@ -0,0 +1,5 @@
#!/bin/sh
. /usr/lib/systemd/systemd-apk-macros.sh
systemd_service_post_install system swclock-offset-boot.service
systemd_service_post_install system swclock-offset-shutdown.service

View File

@ -0,0 +1,5 @@
#!/bin/sh
. /usr/lib/systemd/systemd-apk-macros.sh
systemd_service_pre_deinstall system swclock-offset-boot.service
systemd_service_pre_deinstall system swclock-offset-shutdown.service