summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 78e44773611bb2b64b362ca9b6c8a88ed5f61e16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: justbrowsing <developer4linux+aur@gmail.com>
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"
}