aboutsummaryrefslogtreecommitdiffstats
path: root/community/bandwhich/APKBUILD
blob: ba9c1e0ea3b50c485870e91f88cbc54091caceb9 (plain)
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
35
36
37
38
# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=bandwhich
pkgver=0.20.0
pkgrel=2
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"
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 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
"