void-packages/srcpkgs/ndpi/template

34 lines
821 B
Bash

# Template file for 'ndpi'
pkgname=ndpi
version=1.8
revision=1
wrksrc=nDPI-${version}
build_style=gnu-configure
hostmakedepends="libtool automake pkg-config"
makedepends="libpcap-devel json-c-devel"
short_desc="Open Source Deep Packet Inspection Software Toolkit"
maintainer="Toyam Cox <Vaelatern@gmail.com>"
license="GPL-3"
homepage="http://www.ntop.org/products/ndpi/"
distfiles="https://github.com/ntop/nDPI/archive/${version}.tar.gz"
checksum=cea26a7f280301cc3a0e714b560d48b57ae2cf6453b71eb647ceb3fccecb5ba2
pre_configure() {
autoreconf -fi
}
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
}
}