# Maintainer: Kyle Keen # Contributor: ViNS # Contributor: Daenyth pkgname=nethogs pkgver=0.7.0 pkgrel=4 pkgdesc="A net top tool which displays traffic used per process instead of per IP or interface" url="http://nethogs.sourceforge.net" license=(GPL) depends=(libpcap ncurses gcc-libs) arch=(i686 x86_64) source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz gcc44.patch) md5sums=('e5f04071571e469e14c89f637cfa34a2' '62eb824fbbadd1c60d0749593c16d293') build() { cd "$srcdir/$pkgname" sed -i '/sbin :=/ s/sbin/bin/g' Makefile # Patch the code to work with gcc 4.4 patch -Np1 -i "$srcdir/gcc44.patch" make install -d "$pkgdir/usr/bin" install -d "$pkgdir/usr/share/man/man8" make DESTDIR="$pkgdir/usr" install } # vim:set ts=2 sw=2 et: