38 lines
997 B
Bash
38 lines
997 B
Bash
# Template file for 'libnl3'
|
|
pkgname=libnl3
|
|
version=3.9.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="flex pkg-config"
|
|
conf_files="/etc/libnl/pktloc /etc/libnl/classid"
|
|
short_desc="Netlink Protocol Library Suite"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-only"
|
|
homepage="https://github.com/thom311/libnl"
|
|
distfiles="https://github.com/thom311/libnl/releases/download/libnl${version//./_}/libnl-${version}.tar.gz"
|
|
checksum=aed507004d728a5cf11eab48ca4bf9e6e1874444e33939b9d3dfed25018ee9bb
|
|
|
|
pre_build() {
|
|
vsed -i -e '/<linux\/if_bridge.h>/i#define _LINUX_IN6_H' lib/route/link/bridge.c
|
|
}
|
|
|
|
libnl3-devel_package() {
|
|
depends="${sourcepkg}>=${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
|
|
}
|
|
}
|