void-packages/srcpkgs/libnl3/template
2013-06-17 07:42:13 +02:00

48 lines
1 KiB
Text

# Template file for 'libnl3'
pkgname=libnl3
version=3.2.22
revision=1
wrksrc=libnl-${version}
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="flex"
short_desc="Netlink Protocol Library Suite"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://www.infradead.org/~tgr/libnl"
distfiles="${homepage}/files/libnl-${version}.tar.gz"
checksum=c7c5f267dfeae0c1a530bf96b71fb7c8dbbb07d54beef49b6712d8d6166f629b
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" automake libtool pkg-config"
makedepends="libfl-devel"
pre_configure() {
autoreconf -fi
}
fi
libnl3-devel_package() {
depends="libnl3>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
libnl3-progs_package() {
short_desc+=" - cli utilities"
pkg_install() {
vmove usr/sbin
vmove usr/share/man/man8
vmove usr/lib/libnl
}
}
libnl3_package() {
conf_files="/etc/libnl/pktloc /etc/libnl/classid"
pkg_install() {
vmove all
}
}