upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / nethogs / trunk / PKGBUILD
blob2d37ba4260269387e3c777149941386a8d622b38
1 # Maintainer: Kyle Keen <keenerd@gmail.com>
2 # Contributor: ViNS <gladiator@fastwebnet.it>
3 # Contributor: Daenyth
4 pkgname=nethogs
5 pkgver=0.8.7
6 pkgrel=1
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"
9 license=('GPL')
10 depends=('libpcap' 'ncurses' 'gcc-libs')
11 arch=('x86_64')
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')
16 prepare() {
17   cd "$srcdir/$pkgname-$pkgver"
19   sed -i 's|/sbin|/bin|' src/MakeApp.mk
20   sed -i 's|/local||'  Makefile
23 build() {
24   cd "$srcdir/$pkgname-$pkgver"
25   make prefix="/usr"
26   make prefix="/usr" libnethogs
29 package() {
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: