blob: 2a06267b4412b799bafb3a7dd6f9713e053681e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
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="GPL-2.0"
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"
|