# Template file for 'libmnl'
pkgname=libmnl
version=1.0.5
revision=1
build_style=gnu-configure
short_desc="Minimalistic user-space library oriented to Netlink developers"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="LGPL-2.1-or-later"
homepage="http://www.netfilter.org/projects/libmnl/"
distfiles="http://www.netfilter.org/projects/${pkgname}/files/${pkgname}-${version}.tar.bz2"
checksum=274b9b919ef3152bfb3da3a13c950dd60d6e2bcd54230ffeca298d03b40d0525

if [ "$XBPS_TARGET_LIBC" = musl ]; then
	checkdepends+=" musl-legacy-compat"
fi

libmnl-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" -- development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
	}
}
