# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=libnftnl pkgver=1.1.4 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" 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="6fe248b1340decc1ec8ae40dd0ed60b8d4b819c2f36f2399d39e13e92fc5e6f6ec693b736d6c188bff954afb2bf2dbce67d54a9e664b45f43288b2c5c6cc08f6 libnftnl-1.1.4.tar.bz2"