diff options
Diffstat (limited to 'testing/libnl/APKBUILD')
-rw-r--r-- | testing/libnl/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/libnl/APKBUILD b/testing/libnl/APKBUILD new file mode 100644 index 0000000000..9db755aef1 --- /dev/null +++ b/testing/libnl/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=libnl +pkgver=1.1 +pkgrel=0 +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" |