void-packages/srcpkgs/libnl3/template
2016-09-16 17:22:02 +02:00

38 lines
1 KiB
Bash

# Template file for 'libnl3'
pkgname=libnl3
version=3.2.28
revision=2
wrksrc="libnl-${version}"
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="automake flex libtool pkg-config"
conf_files="/etc/libnl/pktloc /etc/libnl/classid"
short_desc="Netlink Protocol Library Suite"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
homepage="https://github.com/thom311/libnl"
distfiles="https://github.com/thom311/libnl/releases/download/libnl${version//./_}/libnl-${version}.tar.gz"
checksum=cd608992c656e8f6e3ab6c1391b162a5a51c49336b9219f7f390e61fc5437c41
pre_configure() {
autoreconf -fi
sed -i '/<linux\/if_bridge.h>/i#define _LINUX_IN6_H' lib/route/link/bridge.c
}
libnl3-devel_package() {
depends="libnl3>=${version}_${revision}"
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/bin
vmove usr/share/man/man8
vmove usr/lib/libnl
}
}