# Maintainer: justbrowsing pkgname=justbrowsing-systemd pkgver=1.2 pkgrel=1 pkgdesc="SystemD Unit files and boot script to start JustBrowsing session" arch=('any') url="https://github.com/justbrowsing/justbrowsing-systemd" license=('GPL3') makedepends=('') depends=('systemd' 'polkit') optdepends=('jb-config: load/save and manage settings') groups=("justbrowsing") source=("https://github.com/justbrowsing/${pkgname}/archive/master.tar.gz") install="jb-systemd.install" md5sums=('0e43522ddfdb896bf5826c7936cb8d73') package() { cd "$srcdir/${pkgname}-master" mkdir -p "$pkgdir/etc/polkit-1/rules.d" chmod 0700 "$pkgdir/etc/polkit-1/rules.d" # Boot script install -Dm755 restoreboot "$pkgdir/usr/bin/restoreboot" # Polkit rule install -Dm644 00-timezone.rules "$pkgdir/etc/polkit-1/rules.d/00-timezone.rules" # Unit files install -Dm644 autologin@.service "$pkgdir/usr/lib/systemd/system/autologin@.service" install -Dm644 restoreboot.service "$pkgdir/usr/lib/systemd/system/restoreboot.service" install -Dm644 savejb-daemon.service "$pkgdir/usr/lib/systemd/system/savejb-daemon.service" }