# Contributor: Anjandev Momi # Maintainer: Anjandev Momi pkgname=bandwhich pkgver=0.20.0 pkgrel=3 pkgdesc="Terminal bandwidth utilization tool" url="https://github.com/imsnif/bandwhich" # s390x and riscv64 blocked by cargo/rust arch="all !s390x !riscv64" license="MIT" makedepends="cargo cargo-auditable" source="https://github.com/imsnif/bandwhich/archive/$pkgver/$pkgname-$pkgver.tar.gz update-socket2.patch " prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --frozen --release } check() { cargo test --frozen || true } package() { install -D -m755 target/release/$pkgname -t "$pkgdir"/usr/bin/ } sha512sums=" 3bd5cc4166514feb601eb921ef3fbad08b8e9787aad1bb0c8a9543207631964ffc14cc1488e96ef4319bb1a20c5f684b744facd2a6cf1d9ef6dd5d2fefc524cb bandwhich-0.20.0.tar.gz d7ca3700210568f21fc3f092c81dea16a9adab1e1f0d39a0b731f9e01ede80f4ebe10da6c6a93e11cf5a056b48792c1b803e260ac4011c9e78b5ca9949947f85 update-socket2.patch "