summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/abuild/APKBUILD5
-rw-r--r--main/abuild/abuild.pre-install6
2 files changed, 10 insertions, 1 deletions
diff --git a/main/abuild/APKBUILD b/main/abuild/APKBUILD
index dd10cd177..4c55a07da 100644
--- a/main/abuild/APKBUILD
+++ b/main/abuild/APKBUILD
@@ -2,13 +2,15 @@
pkgdesc="Script to build Alpine Packages"
pkgname=abuild
pkgver=2.7
-pkgrel=1
+pkgrel=2
url=http://git.alpinelinux.org/cgit/abuild/
source="http://git.alpinelinux.org/cgit/abuild/snapshot/abuild-$pkgver.tar.bz2
0001-abuild-only-warn-when-we-think-there-should-have-bee.patch
"
depends="fakeroot file sudo pax-utils openssl apk-tools>=2.0.7-r1"
makedepends="openssl-dev pkgconfig"
+install="$pkgname.pre-install"
+pkggroups="abuild"
arch="all"
license=GPL-2
@@ -33,6 +35,7 @@ package() {
cd "$srcdir/$pkgname-$pkgver"
make install DESTDIR="$pkgdir"
install -m 644 abuild.conf "$pkgdir"/etc/abuild.conf
+ install -d -m 775 -g abuild "$pkgdir"/var/cache/distfiles
}
md5sums="e6f5e18956d95e75da22adce128b2d52 abuild-2.7.tar.bz2
diff --git a/main/abuild/abuild.pre-install b/main/abuild/abuild.pre-install
new file mode 100644
index 000000000..196ac7a9d
--- /dev/null
+++ b/main/abuild/abuild.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if ! getent group abuild >/dev/null then
+ addgroup -S abuild
+fi
+exit 0