void-packages/srcpkgs/ndpi/template

38 lines
904 B
Bash

# Template file for 'ndpi'
pkgname=ndpi
version=3.4
revision=1
wrksrc=nDPI-${version}
build_style=gnu-configure
hostmakedepends="libtool automake pkg-config"
makedepends="libpcap-devel json-c-devel libgcrypt-devel"
short_desc="Open Source Deep Packet Inspection Software Toolkit"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="LGPL-3.0-or-later"
homepage="http://www.ntop.org/products/ndpi/"
distfiles="https://github.com/ntop/nDPI/archive/${version}.tar.gz"
checksum=dc9b291c7fde94edb45fb0f222e0d93c93f8d6d37f4efba20ebd9c655bfcedf9
do_configure() {
./autogen.sh ${configure_args}
}
do_check() {
cd tests ; ./do.sh
}
post_install() {
vdoc doc/nDPI_QuickStartGuide.pdf
}
ndpi-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}