aboutsummaryrefslogblamecommitdiffstats
path: root/main/libnl/APKBUILD
blob: 0d59185e984d37de98fe6451bc11cf2975679bed (plain) (tree)
1
2
3
4


                                                   
        







































                                                                      
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnl
pkgver=1.1
pkgrel=3
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"