# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=libnftnl pkgver=1.1.5 pkgrel=0 pkgdesc="Netfilter library providing interface to the nf_tables subsystem" url="https://netfilter.org/projects/libnftnl" arch="all" license="GPL-2.0-or-later" depends_dev="libmnl-dev" makedepends="$depends_dev bash jansson-dev" subpackages="$pkgname-dev $pkgname-libs" source="https://netfilter.org/projects/libnftnl/files/libnftnl-$pkgver.tar.bz2 nft-flowtable-test.patch" 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 } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="a0495e1a99ea9efcf3994db48e50943023ff3d8101055887574ff4eb6b0df8600cf7db68a9c91ca02bbbcc1f01099b008649f88321bb956897bcc90eb4167ee7 libnftnl-1.1.5.tar.bz2 9c9efaccc2f01e031fe6e05db480a3a1aeace74d11e5e2f2f25979e7543beeea86ea80c0661836a2ec26663c801abb08de3c76c5ac98536b8c05e7caab1f9407 nft-flowtable-test.patch"