From b2d381bd42752747ba4221060177ec2cfe958f25 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sun, 30 Sep 2012 12:59:35 +0000 Subject: main/libnl3: new aport --- main/libnl3/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 main/libnl3/APKBUILD (limited to 'main/libnl3/APKBUILD') diff --git a/main/libnl3/APKBUILD b/main/libnl3/APKBUILD new file mode 100644 index 0000000000..d716117866 --- /dev/null +++ b/main/libnl3/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: Natanael Copa +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" -- cgit v1.2.3