1 # Maintainer: Kyle Keen <keenerd@gmail.com>
2 # Contributor: ViNS <gladiator@fastwebnet.it>
7 pkgdesc="A net top tool which displays traffic used per process instead of per IP or interface"
8 url="https://github.com/raboof/nethogs"
10 depends=('libpcap' 'ncurses' 'gcc-libs')
12 #source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
13 source=(nethogs-$pkgver.tgz::https://github.com/raboof/nethogs/archive/v$pkgver.tar.gz)
14 sha256sums=('957d6afcc220dfbba44c819162f44818051c5b4fb793c47ba98294393986617d')
17 cd "$srcdir/$pkgname-$pkgver"
19 sed -i 's|/sbin|/bin|' src/MakeApp.mk
20 sed -i 's|/local||' Makefile
24 cd "$srcdir/$pkgname-$pkgver"
26 make prefix="/usr" libnethogs
30 cd "$srcdir/$pkgname-$pkgver"
31 make prefix="/usr" DESTDIR="$pkgdir" install
32 make prefix="/usr" DESTDIR="$pkgdir" install_lib
33 # todo: report these upstream
34 install -Dm755 src/libnethogs.h "$pkgdir/usr/include/libnethogs.h"
35 ln -s "/usr/lib/libnethogs.so.$pkgver" "$pkgdir/usr/lib/libnethogs.so"
37 # vim:set ts=2 sw=2 et: