# Maintainer: Natanael Copa pkgname=libnl3 pkgver=3.2.28 pkgrel=1 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" 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/ } md5sums="bab12db1eb94a42129f712a44be91a67 libnl-3.2.28.tar.gz" sha256sums="cd608992c656e8f6e3ab6c1391b162a5a51c49336b9219f7f390e61fc5437c41 libnl-3.2.28.tar.gz" sha512sums="b5f145ecafb2625ed1c42594afd6063f112a601077de5c35884b3c3bc8c562b29b52a006ccebd795c127fe69692a82def425c8605afed7e6d441582943e803d9 libnl-3.2.28.tar.gz"