aboutsummaryrefslogtreecommitdiffstats
path: root/main/umurmur
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-12-04 15:21:09 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-12-04 15:25:26 +0100
commita061c75e665a5afc1e59c6b03ad71909cdc90497 (patch)
treec731468bd9dffb3b652a319503bddbd389bc76d0 /main/umurmur
parentecd117fcd7a29780b610c1c585e71546a33d5c16 (diff)
downloadaports-a061c75e665a5afc1e59c6b03ad71909cdc90497.tar.bz2
aports-a061c75e665a5afc1e59c6b03ad71909cdc90497.tar.xz
main/umurmur: improve abuild
Diffstat (limited to 'main/umurmur')
-rw-r--r--main/umurmur/APKBUILD31
1 files changed, 14 insertions, 17 deletions
diff --git a/main/umurmur/APKBUILD b/main/umurmur/APKBUILD
index eae71d4ac7..5a7882071c 100644
--- a/main/umurmur/APKBUILD
+++ b/main/umurmur/APKBUILD
@@ -8,7 +8,6 @@ url="http://umurmur.net/"
arch="all"
license="BSD"
depends=""
-depends_dev=""
makedepends="libconfig-dev libressl-dev protobuf-c-dev autoconf automake"
install="$pkgname.post-install $pkgname.post-deinstall"
subpackages="$pkgname-doc"
@@ -17,24 +16,18 @@ pkggroups="umurmur"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
- $pkgname.conf
- "
+ $pkgname.conf"
+builddir="$srcdir/$pkgname-$pkgver"
-_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ default_prepare || return 1
- autoreconf -fi || return 1
+ cd "$builddir"
+ autoreconf -fi
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -48,12 +41,16 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
+
make DESTDIR="$pkgdir" install || return 1
- install -Dm644 "$srcdir"/$pkgname.conf "$pkgdir"/etc/$pkgname/umurmurd.conf
+ install -Dm644 "$srcdir"/$pkgname.conf \
+ "$pkgdir"/etc/$pkgname/umurmurd.conf || return 1
- install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
- install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+ install -Dm755 "$srcdir"/$pkgname.initd \
+ "$pkgdir"/etc/init.d/$pkgname || return 1
+ install -Dm644 "$srcdir"/$pkgname.confd \
+ "$pkgdir"/etc/conf.d/$pkgname || return 1
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
install -Dm644 AUTHORS ChangeLog README.md \