summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-30 12:59:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-09-30 13:04:12 +0000
commitb2d381bd42752747ba4221060177ec2cfe958f25 (patch)
treebe941b827046b099cc460b3b3e67e6bea6b48b84
parent0d452a54160dc2f6c668e27032f7e67d5b924ab7 (diff)
downloadaports-b2d381bd42752747ba4221060177ec2cfe958f25.tar.bz2
aports-b2d381bd42752747ba4221060177ec2cfe958f25.tar.xz
main/libnl3: new aport
-rw-r--r--main/libnl3/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/main/libnl3/APKBUILD b/main/libnl3/APKBUILD
new file mode 100644
index 000000000..d71611786
--- /dev/null
+++ b/main/libnl3/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libnl3
+pkgver=3.2.11
+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"
+
+_builddir="$srcdir"/libnl-$pkgver
+
+prepare () {
+ cd "$_builddir"
+ 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 --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir"/usr/lib -name '*.la' -delete
+}
+
+md5sums="7a35f3a17b52f41ee120dceb99b2ef72 libnl-3.2.11.tar.gz"