33 lines
945 B
Plaintext
33 lines
945 B
Plaintext
# Maintainer: Jakko <jahau@rocketmail.com>
|
|
pkgname=swclock-offset
|
|
pkgver=0.2.4
|
|
pkgrel=1
|
|
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"
|
|
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
|
|
}
|
|
|
|
systemd() {
|
|
install="$subpkgname.post-install $subpkgname.pre-deinstall"
|
|
install_if="$pkgname=$pkgver-r$pkgrel systemd"
|
|
|
|
amove usr/lib/systemd
|
|
}
|
|
|
|
openrc() {
|
|
install="$subpkgname.post-install $subpkgname.pre-deinstall"
|
|
default_openrc
|
|
}
|
|
|
|
sha512sums="
|
|
73392b993cfa844cd8588378e282b0bd2b87e715c8ddeb4dd82c725e0afc3f66669db1682ea945b7558ade85a30e31c58ccc35332a470c73a7166ccc4ecfe642 swclock-offset-0.2.4.tar.gz
|
|
"
|