void-packages/srcpkgs/libknet1/template
2021-01-16 13:04:29 +01:00

60 lines
1.8 KiB
Bash

# Template file for 'libknet1'
# only libraries and development files now, if interested in kronosnetd update!
pkgname=libknet1
version=1.11
revision=3
wrksrc=kronosnet-${version}
build_style=gnu-configure
configure_args="--disable-dependency-tracking --disable-libknet-sctp
--disable-kronosnetd --disable-poc --disable-static"
hostmakedepends="automake doxygen libtool libxml2-devel pkg-config libqb-devel"
makedepends="bzip2-devel liblz4-devel liblzma-devel libnl3-devel libqb-devel
libressl-devel libxml2-devel libzstd-devel lzo-devel nss-devel zlib-devel"
short_desc="Kronosnet core switching implementation (libraries)"
maintainer="Jiří Bělka <jirib79@gmail.com>"
license="GPL-2.0-or-later, LGPL-2.1-only"
homepage="https://www.kronosnet.org"
distfiles="https://kronosnet.org/releases/kronosnet-${version}.tar.bz2"
checksum=c2ee20a9b5b0791ed5379b38b0b51d549603933925a839f045455553f03e6114
patch_args='-Np1'
CFLAGS="-Wno-format-truncation"
pre_configure() {
autoreconf -fi
}
post_install() {
rm -rf ${DESTDIR}/usr/share/doc/kronosnet
vdoc README
}
libknet1-devel_package() {
depends="libknet1>=${version}_${revision}"
short_desc="Kronosnet core switching implementation (development files)"
pkg_install() {
vmove usr/include/libknet.h
vmove usr/lib/libknet.so
vmove usr/lib/pkgconfig/libknet.pc
vmove "usr/share/man/man3/knet*"
}
}
libnozzle1_package() {
short_desc="Userland wrapper around kernel tap devices"
pkg_install() {
vmove "usr/lib/libnozzle.so.*"
}
}
libnozzle1-devel_package() {
depends="libnozzle1>=${version}_${revision}"
short_desc="Userland wrapper around kernel tap devices (development files)"
pkg_install() {
vmove usr/include/libnozzle.h
vmove usr/lib/libnozzle.so
vmove usr/lib/pkgconfig/libnozzle.pc
vmove "usr/share/man/man3/nozzle*"
}
}