void-packages/srcpkgs/nethogs/template

20 lines
636 B
Bash

# Template file for 'nethogs'
pkgname=nethogs
version=0.8.5
revision=1
makedepends="libpcap-devel ncurses-devel"
short_desc="Small net top tool grouping bandwidth by process"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-1"
homepage="https://github.com/raboof/nethogs"
distfiles="https://github.com/raboof/nethogs/archive/v${version}.tar.gz"
checksum=6a9392726feca43228b3f0265379154946ef0544c2ca2cac59ec35a24f469dcc
do_build() {
sed -i 's,all: decpcap_test test nethogs,all: nethogs,' Makefile
make CC=$CC CXX=$CXX CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" ${makejobs}
}
do_install() {
vbin src/nethogs
vman doc/nethogs.8
}