mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-13 03:42:37 +01:00
50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libnl
|
|
pkgver=1.1
|
|
pkgrel=4
|
|
pkgdesc="Library for applications dealing with netlink sockets"
|
|
url="http://people.suug.ch/~tgr/libnl"
|
|
arch="all"
|
|
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 \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--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"
|