# Maintainer: Natanael Copa pkgname=libnl3 pkgver=3.7.0 pkgrel=2 pkgdesc="Library for applications dealing with netlink sockets" url="http://www.infradead.org/~tgr/libnl/" arch="all" license="LGPL-2.1-or-later" makedepends="linux-headers flex bison libtool autoconf automake" checkdepends="check-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-cli" # XXX: Since 3.6.0, the tests modify the process namespace. # Many of these operations are not allowed by our CI sandbox. # The tests should pass locally. # # See: https://github.com/thom311/libnl/commit/9102872ac24c71f5ac48b6a1f09115c872b5793b options="!check" source="https://github.com/thom311/libnl/releases/download/libnl${pkgver//./_}/libnl-$pkgver.tar.gz libnl3-musl.patch " builddir="$srcdir"/libnl-$pkgver prepare() { default_prepare autoreconf -vif } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-static \ --enable-unit-tests make } check() { make check } package() { 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=" 80fbbc079299c90afd2a5eda62e4d4f98bf4ef23958c3ce5101f4ed4d81d783af733213bb3bab15f218555d8460bc2394898f909f4ac024fc27281faec86a041 libnl-3.7.0.tar.gz 2b9b569c00b9e29930a83e88264e9cb63a4991bd89a04f2fc4b4c468a2a73309d9463f0b9e4a945e614c0f831a68fc99c5768a0f2214a0dde00785215e24e1dc libnl3-musl.patch "