aports/main/libnl3/APKBUILD
2018-07-12 11:17:26 +00:00

59 lines
1.4 KiB
Plaintext

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnl3
pkgver=3.4.0
pkgrel=0
pkgdesc="Library for applications dealing with netlink sockets"
url="http://www.infradead.org/~tgr/libnl/"
arch="all"
license="GPL"
depends=
makedepends="linux-headers flex bison libtool autoconf automake"
checkdepends="check-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-cli"
source="https://github.com/thom311/libnl/releases/download/libnl${pkgver//./_}/libnl-$pkgver.tar.gz
libnl3-musl.patch
"
builddir="$srcdir"/libnl-$pkgver
prepare () {
default_prepare
cd "$builddir"
autoreconf -vif
}
build () {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--disable-static \
--enable-unit-tests
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
cli() {
pkgdesc="Command line interface utils for libnl3"
mkdir -p "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/libnl-cli*.so.* \
"$pkgdir"/usr/lib/libnl \
"$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
sha512sums="6336e5c55c79ff2638de9c812cc1842871769236bad7f65c547dec35fafd91988b257fceab144a0cc133c4b29f61172f6552c53aa9fc723bdc783079c2b1851e libnl-3.4.0.tar.gz
a31ec4b76d2fc472072f2d770cb3f5819a6477230a97603a476ce175c0c94d25e74eff8dc0ce2e6baa96f0e450b82db508a152f418bdd72919cbd5521d5f82fd libnl3-musl.patch"