aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nethogs/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-17 20:26:05 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-17 20:27:37 +0200
commit2f071a95c1c73962473067ea369f6388cfac90ce (patch)
tree0c493a597827bcc137988f674c2e816ddcf5b535 /testing/nethogs/APKBUILD
parentf7220e054094f5e3f5ba0ebe649ca95985dcee20 (diff)
downloadaports-2f071a95c1c73962473067ea369f6388cfac90ce.tar.gz
aports-2f071a95c1c73962473067ea369f6388cfac90ce.tar.bz2
aports-2f071a95c1c73962473067ea369f6388cfac90ce.tar.xz
testing/nethogs: fix install paths and improve abuild
Diffstat (limited to 'testing/nethogs/APKBUILD')
-rw-r--r--testing/nethogs/APKBUILD23
1 files changed, 12 insertions, 11 deletions
diff --git a/testing/nethogs/APKBUILD b/testing/nethogs/APKBUILD
index 13bca14422..6c8a215fc8 100644
--- a/testing/nethogs/APKBUILD
+++ b/testing/nethogs/APKBUILD
@@ -1,25 +1,26 @@
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
-
pkgname=nethogs
pkgver=0.8.1
-pkgrel=0
-pkgdesc='Top-like monitor for network traffic'
-url='https://github.com/raboof/nethogs'
-arch='all'
-license='GPL'
-makedepends='libpcap-dev ncurses-dev linux-headers'
+pkgrel=1
+pkgdesc="Top-like monitor for network traffic"
+url="https://github.com/raboof/nethogs"
+arch="all"
+license="GPL"
+makedepends="libpcap-dev linux-headers ncurses-dev"
+subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/raboof/$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$srcdir"/$pkgname-$pkgver
- make
+ cd "$builddir"
+ make
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
- make DESTDIR="$pkgdir/usr" install
+ cd "$builddir"
+ make prefix=/usr DESTDIR="$pkgdir" install
}
md5sums="cc0aed87c4cc67fc2ffc5f60aa67bf3d nethogs-0.8.1.tar.gz"