aboutsummaryrefslogtreecommitdiffstats
path: root/main/libnftnl/APKBUILD
blob: 3b5c80d79bbb6e832827969434c400cd1e0211cf (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=libnftnl
pkgver=1.0.6
pkgrel=0
pkgdesc="Netfilter library providing interface to the nf_tables subsystem"
url="http://netfilter.org/projects/libnftnl/"
arch="all"
license="GPL2"
depends=""
depends_dev="libmnl-dev"
makedepends="$depends_dev bash"
install=""
subpackages="$pkgname-dev $pkgname-libs"
source="http://netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	make DESTDIR="$pkgdir" \
		-C "$builddir" install || return 1
}

md5sums="6d7f9f161538ca7efd535dcc70caf964  libnftnl-1.0.6.tar.bz2"
sha256sums="ad3b932a39a1e567308e91b683b32239a5e1aea9b4582dfffe2288c3400ab07e  libnftnl-1.0.6.tar.bz2"
sha512sums="d813c9d0dbdeaffc30695fb0b5dbf987849339d119774c4f0e219db835f2ad9111a7436fd474ffa96b07e288d537cb4a1be153afcca23dabce0c264e1c4a3c62  libnftnl-1.0.6.tar.bz2"