# Maintainer: Aram Drevekenin pkgname=what 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/what" 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/what" "$pkgdir/usr/bin/what" install -Dm644 "docs/what.1" "$pkgdir/usr/share/man/man1/what.1" install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }