Skip to content
Snippets Groups Projects
Verified Commit c17fd420 authored by Clayton Craft's avatar Clayton Craft :speech_balloon:
Browse files

main/swclock-offset: upgrade to 0.2.3

- now installs to /usr by default
- now installs systemd service files by default
- added -systemd subpkg to handle service files
parent 64850b99
No related branches found
No related tags found
No related merge requests found
Pipeline #207013 failed
# 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"
}
openrc() {
......
#!/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
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment