maintainer="Jakko <jahau@rocketmail.com>"
pkgname=swclock-offset
pkgver=0.3.0
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="
7779deaf688dd25b9abe8161c8a0651d11b1a44785ff4495a1c4a8b9ba2108a9e73c47cbdb3f8669c4e2e85bea884145f66311c9ce674c1464538695a9852dc0  swclock-offset-0.3.0.tar.gz
"
