aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bandwhich/APKBUILD
blob: 1e59d696512927759bf1a902415305ac20c8d6c5 (plain) (blame)
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
# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=bandwhich
pkgver=0.16.0
pkgrel=1
pkgdesc="Terminal bandwidth utilization tool"
url="https://github.com/imsnif/bandwhich"
arch="all !s390x !mips !mips64" # Limited by cargo
license="MIT"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/imsnif/bandwhich/archive/$pkgver.tar.gz"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 target/release/bandwhich "$pkgdir"/usr/bin/bandwhich
}

sha512sums="c8708ebce6799cb4017e2dae40735d83b2dc51736048c1f7cdf5a59197434a30f7a5a3ccb3bb323892cada24de88099660a42c0a0f2cd7c477bf5a7d5b1ac158  bandwhich-0.16.0.tar.gz"