void-packages/srcpkgs/jnettop/template

25 lines
869 B
Bash
Raw Normal View History

2017-04-24 12:13:13 +00:00
# Template file for 'jnettop'
pkgname=jnettop
version=0.13.0
revision=1
create_wrksrc=yes
build_wrksrc="${pkgname}-${version}"
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="glib-devel libpcap-devel ncurses-devel"
short_desc="View hosts/ports taking up the most network traffic"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2"
homepage="https://packages.debian.org/sid/net/jnettop"
distfiles="${DEBIAN_SITE}/main/j/${pkgname}/${pkgname}_${version}.orig.tar.gz
${DEBIAN_SITE}/main/j/${pkgname}/${pkgname}_${version}-1.debian.tar.gz"
checksum="e987a1a9325595c8a0543ab61cf3b6d781b4faf72dd0e0e0c70b2cc2ceb5a5a0
5d9b32596039d1f77493403618326f3c15868ced3b7e4849f107cc4754c94c37"
post_extract() {
cd ${build_wrksrc}
cat ../debian/patches/*.patch | patch -Np1
sed -i '/^CFLAGS/d' Makefile.in
sed -i '5308s/.*exit 1.*/:; }/' configure
}