summaryrefslogtreecommitdiffstats
path: root/main/libnl3/APKBUILD
blob: 38310c743fcc1bc7937809533f69a456e52b7115 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnl3
pkgver=3.2.21
pkgrel=0
pkgdesc="Library for applications dealing with netlink sockets"
url="http://people.suug.ch/~tgr/libnl"
arch="all"
license="GPL"
depends=
makedepends="flex bison"
subpackages="$pkgname-dev"
source="http://distfiles.gentoo.org/distfiles/libnl-$pkgver.tar.gz"
source="http://www.carisma.slowglass.com/~tgr/libnl/files/libnl-$pkgver.tar.gz"

_builddir="$srcdir"/libnl-$pkgver

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

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir"/usr/lib -name '*.la' -delete
}

md5sums="6fe7136558a9071e70673dcda38545b3  libnl-3.2.21.tar.gz"
sha256sums="2dc80f043116ec8610d9d418f5f5e9283f3d9a3a48b8d51a8cb0146b3f279604  libnl-3.2.21.tar.gz"
sha512sums="d0efd2d536c2c58f4bcf8cace2f8a13e0d788c4cb2d189e3afd995a0fcdcb861c6606cb3efa223d4426d0f74daecf888fafadbfcf9adbbb64b56c5da5eefa4fa  libnl-3.2.21.tar.gz"