diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/libnetfilter_queue/APKBUILD | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/main/libnetfilter_queue/APKBUILD b/main/libnetfilter_queue/APKBUILD index ee1d6e87be..064ea95fd6 100644 --- a/main/libnetfilter_queue/APKBUILD +++ b/main/libnetfilter_queue/APKBUILD @@ -1,6 +1,6 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libnetfilter_queue -pkgver=1.0.2 +pkgver=1.0.3 pkgrel=0 pkgdesc="API to packets that have been queued by the kernel packet filter" url="http://www.netfilter.org/projects/libnetfilter_queue/index.html" @@ -12,21 +12,14 @@ install="" subpackages="$pkgname-dev" source="https://www.netfilter.org/projects/libnetfilter_queue/files/libnetfilter_queue-$pkgver.tar.bz2" -_builddir="$srcdir"/libnetfilter_queue-$pkgver +builddir="$srcdir"/libnetfilter_queue-$pkgver prepare() { - local i - cd "$_builddir" - update_config_sub || return 1 - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + cd "$builddir" + default_prepare } build() { - cd "$_builddir" - export CFLAGS="$CFLAGS -D_GNU_SOURCE" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -34,14 +27,18 @@ build() { --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --localstatedir=/var \ - || return 1 - make || return 1 + --localstatedir=/var + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } -sha512sums="89fec4d943b85f35e7cef3b1b9071b1280c6e1b282b7e5cb97eb17d05b9ddd175194639ead986767d27152540fe8e167383a1f7bbfe3cdf874a5a42a2c096f11 libnetfilter_queue-1.0.2.tar.bz2" +sha512sums="1d9e0202878bc0ae26ceecd0f4fa4c21f89056e5671d46949f92f21c155d589958b7775760fc837547da34eb9a81e537e95c770d25c166e709dad16de4ca452e libnetfilter_queue-1.0.3.tar.bz2" |