summaryrefslogtreecommitdiffstats
path: root/main/libnfnetlink/APKBUILD
blob: c724700cbf527bbb0e83d8d62a764c65a9877a22 (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
44
45
46
47
48
49
50
51
52
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnfnetlink
pkgver=1.0.1
pkgrel=0
pkgdesc="low-level library for netfilter related kernel/userspace communication"
url="http://www.netfilter.org/projects/libnfnetlink/"
arch="all"
license="GPL-2"
depends=""
makedepends=""
subpackages="$pkgname-dev"
source="http://www.netfilter.org/projects/libnfnetlink/files/libnfnetlink-$pkgver.tar.bz2
	fix-includes.patch"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}
md5sums="98927583d2016a9fb1936fed992e2c5e  libnfnetlink-1.0.1.tar.bz2
e441bfc59a021e3871da9300fccf2b36  fix-includes.patch"
sha256sums="f270e19de9127642d2a11589ef2ec97ef90a649a74f56cf9a96306b04817b51a  libnfnetlink-1.0.1.tar.bz2
78a20a154e7e36f3f2c974705d4db488011d2fb532234f59dee7453efb84bdee  fix-includes.patch"
sha512sums="2ec2cd389c04e21c8a02fb3f6d6f326fc33ca9589577f1739c23d883fe2ee9feaa16e83b6ed09063ad886432e49565dc3256277d035260aca5aab17954b46104  libnfnetlink-1.0.1.tar.bz2
d2d5fdbca911e34b03d06de461921a1a65d3b7819fb07a6376c91411dbc2677f0299eb4fd02985e6879ad6b109232b0a873d4e6ff88708651ea16c9c5df35720  fix-includes.patch"