aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-10-13 02:56:49 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-10-13 03:06:08 +0200
commitb426704eceb43cc241be8dad113f33ea8f839d58 (patch)
treeaf54c7656019a4f98acddcdc3be3db2d2f50d70d
parent5ed382e12b17d06a04e060df757bef686c91cacc (diff)
downloadaports-b426704eceb43cc241be8dad113f33ea8f839d58.tar.bz2
main/libnftnl: modernize abuild
-rw-r--r--main/libnftnl/APKBUILD13
1 files changed, 5 insertions, 8 deletions
diff --git a/main/libnftnl/APKBUILD b/main/libnftnl/APKBUILD
index d19a73d..f95f1f6 100644
--- a/main/libnftnl/APKBUILD
+++ b/main/libnftnl/APKBUILD
@@ -7,30 +7,27 @@ pkgdesc="Netfilter library providing interface to the nf_tables subsystem"
url="http://netfilter.org/projects/libnftnl/"
arch="all"
license="GPL2"
-depends=""
depends_dev="libmnl-dev"
makedepends="$depends_dev bash"
-install=""
subpackages="$pkgname-dev $pkgname-libs"
source="http://netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2"
+builddir="$srcdir/$pkgname-$pkgver"
-builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
+
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
}
package() {
- make DESTDIR="$pkgdir" \
- -C "$builddir" install || return 1
+ make DESTDIR="$pkgdir" -C "$builddir" install
}
md5sums="82183867168eb6644926c48b991b8aac libnftnl-1.0.7.tar.bz2"