diff options
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | kalu.install | 13 |
3 files changed, 16 insertions, 0 deletions
@@ -3,6 +3,7 @@ pkgbase = kalu-git pkgver = pkgrel = 1 url = http://jjacky.com/kalu + install = kalu.install arch = i686 arch = x86_64 license = GPL3+ @@ -11,6 +11,7 @@ depends=('dbus' 'polkit' 'gtk3' 'pacman>=4.1' 'pacman<4.2' 'curl' 'libnotify' 'notification-daemon') makedepends=('perl' 'groff' 'git' 'autoconf') source=("git+https://github.com/jjk-jacky/${_pkgname}.git#branch=next") +install=kalu.install md5sums=('SKIP') provides=($_pkgname) conflicts=($_pkgname) @@ -30,6 +31,7 @@ build() { package() { cd "$srcdir/$_pkgname" make DESTDIR="$pkgdir/" install + chmod 700 "$pkgdir"/usr/share/polkit-1/rules.d } # vim:set ts=2 sw=2 et: diff --git a/kalu.install b/kalu.install new file mode 100644 index 000000000000..ca7149a8b595 --- /dev/null +++ b/kalu.install @@ -0,0 +1,13 @@ +post_install() { + /usr/bin/getent group kalu >/dev/null 2>&1 || usr/sbin/groupadd -g 214 kalu &>/dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + if /usr/bin/getent group kalu >/dev/null 2>&1; then + /usr/sbin/groupdel kalu + fi +} |