1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
6 pkgdesc="A program which looks like top, but is for network packets"
8 url="http://srparish.net/scripts/"
10 depends=('slang' 'libpcap')
12 source=(http://www.sourcefiles.org/Networking/Tools/Scripts/$pkgname-$pkgver.tar.gz \
13 $pkgname-$pkgver-compile.diff)
15 md5sums=('e76602717e79a26b0ab15ab6799fb1ef'
16 '49a7768aeb22df656947448b5ef6e734')
19 cd ${srcdir}/$pkgname-$pkgver
20 patch -Np0 -i ${srcdir}/$pkgname-$pkgver-compile.diff || return 1
22 install -d ${pkgdir}/usr/bin \
23 ${pkgdir}/usr/share/{doc,licenses}/${pkgname} || return 1
25 ./configure --prefix=/usr --sysconfdir=/etc/nettop || return 1
27 make prefix=${pkgdir}/usr install || return 1
30 cat ${srcdir}/$pkgname-$pkgver/${pkgname}.c | tail -n+3 | head -n26 > \
31 ${pkgdir}/usr/share/licenses/$pkgname/LICENSE || return 1
33 install -D -m644 ChangeLog README THANKS ${pkgdir}/usr/share/doc/${pkgname} || return 1