summaryrefslogblamecommitdiff
path: root/user/libnftnl/APKBUILD
blob: f2796b3eaa3a7b5b67000c4d03e2c83979cb7b2d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
                                                              
                                           











                                                                               










                                         
                                                  


           



                                                                                                                                                                     
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Luis Ressel <aranea@aixah.de>
pkgname=libnftnl
pkgver=1.1.2
pkgrel=0
pkgdesc="Netfilter library providing interface to the nf_tables subsystem"
url="https://netfilter.org/projects/libnftnl"
arch="all"
license="GPL-2.0+"
makedepends="libmnl-dev"
subpackages="$pkgname-dev"
source="https://netfilter.org/projects/libnftnl/files/$pkgname-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make -C tests check # builds test binaries
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="808e0efd2ff32a65cca1e6113cc29aece1335364b94ad87438d19b0887d0bd34de11942fa411e4105ef153f2cce862ded17ebc441c413b839ac506471e530569  libnftnl-1.1.2.tar.bz2"