updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / nettop / PKGBUILD
blob5fd86ad3d64d0fc7d91fc389597c165d628c6f95
1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
3 pkgname=nettop
4 pkgver=0.2.3
5 pkgrel=3
6 pkgdesc="A program which looks like top, but is for network packets"
7 arch=('i686' 'x86_64')
8 url="http://srparish.net/scripts/"
9 license=('BSD')
10 depends=('slang' 'libpcap')
11 makedepends=('patch')
12 source=(http://www.sourcefiles.org/Networking/Tools/Scripts/$pkgname-$pkgver.tar.gz \
13         $pkgname-$pkgver-compile.diff)
15 md5sums=('e76602717e79a26b0ab15ab6799fb1ef'
16          '49a7768aeb22df656947448b5ef6e734')
18 build() {
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
26   make || return 1
27   make prefix=${pkgdir}/usr install || return 1
29 # License
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