Compare commits

...
Author SHA1 Message Date
jane400 6e66fad185 main/swclock-offset: enable usage in systemd 2024-07-11 17:26:41 +02:00
3 changed files with 17 additions and 2 deletions

No files matched your search

+10 -2
View File
@@ -1,13 +1,13 @@
# Maintainer: Jakko <jahau@rocketmail.com>
pkgname=swclock-offset
pkgver=0.2.2
pkgrel=0
pkgrel=1
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
@@ -21,6 +21,14 @@ openrc() {
default_openrc
}
systemd() {
depends="$pkgname=$pkgver-r$pkgrel systemd"
install="$subpkgname.post-install $subpkgname.pre-deinstall"
install_if="$pkgname=$pkgver-r$pkgrel systemd"
make DESTDIR="$subpkgdir" install_systemd
}
sha512sums="
44f759dd2249ecce35f5baf9f432fd933e3a07b7ea425ea0f07314c7c3c94ce2d1ab7442d9bce8f03f5d436d15865ae3f4f63d3dc83cc6063af09986b7767e10 swclock-offset-0.2.2.tar.gz
"
@@ -0,0 +1,3 @@
#!/bin/sh
systemctl enable swclock-offset-boot.service swclock-offset-shutdown.service
@@ -0,0 +1,4 @@
#!/bin/sh
systemctl disable --now swclock-offset-boot
systemctl disable --now swclock-offset-shutdown