diff options
Diffstat (limited to 'main/umurmur/APKBUILD')
-rw-r--r-- | main/umurmur/APKBUILD | 31 |
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 \ |