aboutsummaryrefslogtreecommitdiffstats
path: root/main/libnl/APKBUILD
blob: b63fb044acaf5596f64b8dc290dd3990c47b81b4 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnl
pkgver=1.1
pkgrel=1
pkgdesc="Library for applications dealing with netlink sockets"
url="http://people.suug.ch/~tgr/libnl"
license="GPL"
depends=
makedepends=
subpackages="$pkgname-dev"
source="http://distfiles.gentoo.org/distfiles/$pkgname-$pkgver.tar.gz
	libnl-1.1-flags.patch
	libnl-1.1-minor-leaks.patch
	libnl-1.1-vlan-header.patch
	libnl-1.1-glibc-2.8-ULONG_MAX.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"
	./configure --prefix=/usr || return 1
	make || return 1
}

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

md5sums="ae970ccd9144e132b68664f98e7ceeb1  libnl-1.1.tar.gz
9c9072ac8b74135798e0ebcf2d90290d  libnl-1.1-flags.patch
3a42f98cfb353f2469ac3c44b7c0a027  libnl-1.1-minor-leaks.patch
d757127e7af3bd3c82cdb51b1b09d2e0  libnl-1.1-vlan-header.patch
9169c7eec8a2b4b2556dd26ac73c6020  libnl-1.1-glibc-2.8-ULONG_MAX.patch"