diff options
author | jjacky | 2013-06-06 15:43:33 +0200 |
---|---|---|
committer | Olivier Brunel | 2015-06-08 19:11:07 +0200 |
commit | 1eb9d98d3d99350bb613ea8c58b03b250510d92f (patch) | |
tree | 142dfd0819b6c88ebc038fe2a72d700277fad4cd | |
parent | 1277d66b46549cb30ef1070efca2478fd9b37787 (diff) | |
download | aur-1eb9d98d3d99350bb613ea8c58b03b250510d92f.tar.gz |
kalu-git: Update for next version
- Add install file to create/delete the group kalu on install/remove
- Little chmod to silence a warning when installing the new polkit rule
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
-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 +} |