summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjjacky2013-06-06 15:43:33 +0200
committerOlivier Brunel2015-06-08 19:11:07 +0200
commit1eb9d98d3d99350bb613ea8c58b03b250510d92f (patch)
tree142dfd0819b6c88ebc038fe2a72d700277fad4cd
parent1277d66b46549cb30ef1070efca2478fd9b37787 (diff)
downloadaur-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--.SRCINFO1
-rw-r--r--PKGBUILD2
-rw-r--r--kalu.install13
3 files changed, 16 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
index eceba552c6b..ba4ce53b802 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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+
diff --git a/PKGBUILD b/PKGBUILD
index a7641241d9e..fbfe9e10ee8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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 00000000000..ca7149a8b59
--- /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
+}