[arch-commits] Commit in nethogs/trunk (PKGBUILD)

Kyle Keen kkeen at archlinux.org
Mon Jan 11 01:03:15 UTC 2016


    Date: Monday, January 11, 2016 @ 02:03:14
  Author: kkeen
Revision: 155895

upgpkg: nethogs 0.8.1-1

Modified:
  nethogs/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-01-11 00:44:45 UTC (rev 155894)
+++ PKGBUILD	2016-01-11 01:03:14 UTC (rev 155895)
@@ -3,19 +3,21 @@
 # Contributor: ViNS <gladiator at fastwebnet.it>
 # Contributor: Daenyth
 pkgname=nethogs
-pkgver=0.8.0
-pkgrel=5
+pkgver=0.8.1
+pkgrel=1
 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=('d6fb12b46e80a50c9b9f91dd48e2b234'
+#source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+source=(https://github.com/raboof/nethogs/archive/v$pkgver.tar.gz
+        gcc44.patch)
+md5sums=('cc0aed87c4cc67fc2ffc5f60aa67bf3d'
          '62eb824fbbadd1c60d0749593c16d293')
 
 build() {
-  cd "$srcdir/$pkgname"
+  cd "$srcdir/$pkgname-$pkgver"
 
   sed -i 's/sbin/bin/g' Makefile
 
@@ -22,11 +24,11 @@
   # Patch the code to work with gcc 4.4
   patch -Np1 -i "$srcdir/gcc44.patch"
 
-  make
+  make prefix="/usr"
 }
 
 package() {
-  cd "$srcdir/$pkgname"
-  make DESTDIR="$pkgdir/usr" install
+  cd "$srcdir/$pkgname-$pkgver"
+  make prefix="/usr" DESTDIR="$pkgdir" install
 }
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list