# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=libnftnl pkgver=1.0.8 pkgrel=1 pkgdesc="Netfilter library providing interface to the nf_tables subsystem" url="http://netfilter.org/projects/libnftnl/" arch="all" license="GPL2" depends_dev="libmnl-dev" makedepends="$depends_dev bash jansson-dev" subpackages="$pkgname-dev $pkgname-libs" source="http://netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2" builddir="$srcdir/$pkgname-$pkgver" case "$CARCH" in s390x) options="!check" ;; # FIXME esac build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --with-json-parsing make } check() { cd "$builddir"/tests make check # builds test binaries ./test-script.sh } package() { make DESTDIR="$pkgdir" -C "$builddir" install } sha512sums="df9f5967908ce5e6a6a85fe4328bdf6e7501ce6b0e42239b750782aeb76c30b1aae80dd07f73a06fb077d072b1269c4e0c5fd525feed1055400201567d215ef9 libnftnl-1.0.8.tar.bz2"