aboutsummaryrefslogtreecommitdiffstats
path: root/community/nethogs/APKBUILD
blob: 13e2fa628f5ebed96c9b11f58a01e95cc7928438 (plain) (blame)
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.7
pkgrel=0
pkgdesc="Top-like monitor for network traffic"
url="https://github.com/raboof/nethogs"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	libpcap-dev
	linux-headers
	ncurses-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/raboof/nethogs/archive/v$pkgver/$pkgname-$pkgver.tar.gz
	set-version.patch
	"
options="!check"  # no tests provided

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

package() {
	install -Dm755 src/nethogs -t "$pkgdir"/usr/sbin/
	install -Dm644 doc/nethogs.8 -t "$pkgdir"/usr/share/man/man8/
}

sha512sums="
d965f3fa439ea9fbba83578b4272d03f396bf3cff9ae73a94936d47a3422d066d885c7f6f2a47fbe2f445a017bffa3fb3a1215976522ef0ad120fae3b95b31a2  nethogs-0.8.7.tar.gz
81d44aea5fa585d80a52f562b308046d6d173e277ab6fdc1e289eda65cfcfbd5bec379c70eb94052a86d8f2e008dc44be3894fca8d74c5b6754753e609422b3e  set-version.patch
"