aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nethogs/APKBUILD
blob: 7aab19e6cce471fa5924fac2cf411dc02c19cf4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=nethogs
pkgver=0.8.5
pkgrel=0
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
	set-version.patch
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	VERSION="$pkgver" make nethogs
}

package() {
	cd "$builddir"
	install -Dm755 src/nethogs "$pkgdir"/usr/sbin/nethogs || return 1
	install -Dm644 doc/nethogs.8 "$pkgdir"/usr/share/man/man8/nethogs.8
}

md5sums="002fd7227d8ed2a8b0fcb0a1b44731bf  nethogs-0.8.5.tar.gz
8c00ec8ddaf768bdaa5c7246d32ba123  set-version.patch"
sha256sums="6a9392726feca43228b3f0265379154946ef0544c2ca2cac59ec35a24f469dcc  nethogs-0.8.5.tar.gz
f957287746c307153d45e78c6908b59439e201d5830cc7d128cb2ebecdc50ee3  set-version.patch"
sha512sums="a2be81fcebc9925dd8a0fd9f71c6e790206819e0cc5efeeeb0c741baa9fd25ec685a1784b6d331d938cf14381403f9c13d619509d0ffe713ce8786a83a380908  nethogs-0.8.5.tar.gz
2746981a591e3fc93ddf27ccc3bb44e6e6ab5ed8607f39e527add16d90d2db614271cc4b724db8f5483ec1ccf3b2e76c92edc380e6a562240ba143b1efc5da24  set-version.patch"