APKBUILD 1.06 KB
Newer Older
1 2 3
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=libnftnl
4
pkgver=1.1.3
5
pkgrel=0
6
pkgdesc="Netfilter library providing interface to the nf_tables subsystem"
7
url="https://netfilter.org/projects/libnftnl"
8
arch="all"
9
license="GPL-2.0-or-later"
10
depends_dev="libmnl-dev"
Sören Tempel's avatar
Sören Tempel committed
11
makedepends="$depends_dev bash jansson-dev"
12
subpackages="$pkgname-dev $pkgname-libs"
13
source="https://netfilter.org/projects/libnftnl/files/$pkgname-$pkgver.tar.bz2"
14
builddir="$srcdir/$pkgname-$pkgver"
15

16 17 18 19
case "$CARCH" in
s390x) options="!check" ;; # FIXME
esac

20
build() {
21
	cd "$builddir"
22 23 24 25
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
26 27
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
Sören Tempel's avatar
Sören Tempel committed
28 29
		--localstatedir=/var \
		--with-json-parsing
30
	make
31 32
}

Sören Tempel's avatar
Sören Tempel committed
33 34
check() {
	cd "$builddir"/tests
35
	make check
Sören Tempel's avatar
Sören Tempel committed
36 37
}

38
package() {
39 40
	cd "$builddir"
	make DESTDIR="$pkgdir" install
41 42
}

43
sha512sums="3fb96ea1a8bc9eb00fa2cf79f64cc9613250e8b97de6e90e440c7c44e92789e7c7fd603b7347bb02d9d74af725cf8fde5d2e435c5ffdcb784316c67b83ddf0fe  libnftnl-1.1.3.tar.bz2"