maintainer="Jakko <jahau@rocketmail.com>"
pkgname=swclock-offset
pkgver=0.2.7
pkgrel=0
pkgdesc="Keep system time at an offset to a non-writable RTC"
url="https://gitlab.postmarketos.org/postmarketOS/swclock-offset"
arch="noarch"
license="GPL-3.0-or-later"
install="$pkgname.post-deinstall $pkgname-openrc.post-install $pkgname-openrc.pre-deinstall"
subpackages="$pkgname-openrc $pkgname-systemd"
source="https://gitlab.postmarketos.org/postmarketOS/swclock-offset/-/archive/$pkgver/swclock-offset-$pkgver.tar.gz"
options="!check" # No tests

package() {
	make DESTDIR="$pkgdir" install
}

openrc() {
	depends="openrc"
	default_openrc
}

sha512sums="
3e5b3fb3c235a5fb1ae6449abfaaa702790c4a38c4f9f954901b0334cdb47b47d7bc941dc56387d25efc7666121e967078ad63bcd918c37562120ad7b30ce931  swclock-offset-0.2.7.tar.gz
"
