aboutsummaryrefslogtreecommitdiffstats
path: root/main/libnftnl/APKBUILD
blob: 022cce657fc0d478738d3be4d4e266821dd02072 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=libnftnl
pkgver=1.0.5
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
prepare() {
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="af0c62ce6bbd7a7d39def0996c1c17c9  libnftnl-1.0.5.tar.bz2"
sha256sums="f6d4f5a702e38bc7987f2363f9fcd65930e8b702595c221a497e2f3a359be497  libnftnl-1.0.5.tar.bz2"
sha512sums="85c71aaaeeafdffe09f2591f26d49d41e9f511a53ed313fe642b4968eae8aac1246a53d5908fc737c6eb9cc4f5f3ef2a4eaa17fe33db453a1fd60f2f9d5c5a1d  libnftnl-1.0.5.tar.bz2"