# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=bpfmon
pkgver=2.52
pkgrel=0
pkgdesc="BPF based visual packet rate monitor"
url="https://github.com/bbonev/bpfmon"
arch="all"
license="GPL-2.0-or-later"
makedepends="libpcap-dev yascreen-dev"
options="!check" # no test
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/bbonev/bpfmon/archive/v$pkgver.tar.gz"

build() {
	make PREFIX=/usr
}

package() {
	make PREFIX=/usr INSTALL=install DESTDIR="$pkgdir" install
	install -Dm0644 bpfmon.8 "$pkgdir"/usr/share/man/man8/bpfmon.8
}

sha512sums="
963fb23f330c3388fd246de778c49a926c8e20b695f21fbee6c411ab9ac3939ab91ea4b29000b9558a5a705b4d6b83d250eef5af43019df3fdd2d7872e781b48  bpfmon-2.52.tar.gz
"
