# Maintainer: Aram Drevekenin pkgname=bandwhich pkgver=0.3.7 pkgrel=2 makedepends=('rust' 'cargo') arch=('i686' 'x86_64' 'armv6h' 'armv7h') pkgdesc="Display network utilization by process, connection and remote address" url="https://github.com/imsnif/bandwhich" source=("https://github.com/imsnif/$pkgname/archive/$pkgver.tar.gz") license=('MIT') sha256sums=("b60f002bd095cad88dd1cd1b4bcbcf65482e52d73fdff961455133b8a4ee4666") check() { cd "$pkgname-$pkgver" cargo test --release --locked } build() { cd "$pkgname-$pkgver" cargo build --release --locked } package() { cd "$pkgname-$pkgver" install -Dm755 "target/release/bandwhich" "$pkgdir/usr/bin/bandwhich" install -Dm644 "docs/bandwhich.1" "$pkgdir/usr/share/man/man1/bandwhich.1" install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }