summaryrefslogtreecommitdiffstats
path: root/main/libnl/APKBUILD
blob: 7e7739318a4bb5d6da409cd40dea4c9d4010586e (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
53
54
55
56
57
58
59
60
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnl
pkgver=1.1.4
pkgrel=0
pkgdesc="Library for applications dealing with netlink sockets"
url="http://people.suug.ch/~tgr/libnl"
arch="all"
license="GPL"
depends=
makedepends="linux-headers"
subpackages="$pkgname-dev"
source="http://www.carisma.slowglass.com/~tgr/libnl/files/$pkgname-$pkgver.tar.gz
	libnl-1.1-flags.patch
	libnl-1.1-vlan-header.patch
	fix-strerror_r.patch
	fix-includes.patch
	"

_builddir="$srcdir"/libnl-$pkgver

prepare () { 
	cd "$_builddir"
	for i in "$srcdir"/*.patch; do
		[ -r "$i" ] || continue
		msg "Applying $i"
		patch -s -p1 -i $i || return 1
	done
}

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

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

md5sums="580cb878be536804daca87fb75ae46cc  libnl-1.1.4.tar.gz
9c9072ac8b74135798e0ebcf2d90290d  libnl-1.1-flags.patch
d757127e7af3bd3c82cdb51b1b09d2e0  libnl-1.1-vlan-header.patch
08714767527cb9579c0b918f3433eb4d  fix-strerror_r.patch
eebc5ce0956034b3526de410a814442b  fix-includes.patch"
sha256sums="4f80c21fe5bbcdde6e72b59b4f98306063a41421f909887c34e58d93e746d063  libnl-1.1.4.tar.gz
1b89c83789c695c7622318496c6cb6de338c76a61844c2bbaa200a5a1d6a8c9b  libnl-1.1-flags.patch
c9c7d8bf94ab06884f91ecd98977433be952530555aff37befc335f1f6312619  libnl-1.1-vlan-header.patch
93d5dbb813cf5f6424c6110a05bc39bf2e9a942b2eecc150d3e5e0cbf13066b8  fix-strerror_r.patch
1429f078e58372a7bfbd94e02f8be13d302731013673d14fbeb5f685125e9a92  fix-includes.patch"
sha512sums="25e26ddcc16540346ea34815ab6ac094177e5cee2eb3d843c4f8b30cd9d83390a3e87cb46046dc3bd9ae4d21f77e57bb3827c2cfc588eb18afe049921f2030b4  libnl-1.1.4.tar.gz
7ef2b3a7fb79227644c897a8cd59d6fc1e94a37211ea59684fe11ec4e34fe95cdc8c3df72134128326c2db10cbada9641290994253a4a80875971d95a73a74c0  libnl-1.1-flags.patch
ea45d780b16e6045735aaf2e3febf19ddccab4ca0e03710aebfe51655adc50177aefa3bd4d06e0ccce0160f4c6db73cfa4eb7cebe53b3e15c1807c3b00dc1c9c  libnl-1.1-vlan-header.patch
0464db6611234e3ece7191d88da12d241d0a1cf03e8fa1a8ec1757c0ae971fde1ae727e39358a49ac74f2fee8465b02f6fe21ae0ccc58851299c325b9475d58b  fix-strerror_r.patch
3d7281137f95e2dcdbc17e1e1676f2a220a735161527cef80d4608e0c16d985d4d14df1d040b6d18b24c407577b6bf0cfb0d7f3520657e9c16b2d487eb1d445a  fix-includes.patch"