aboutsummaryrefslogtreecommitdiffstats
path: root/testing/diskonaut/APKBUILD
blob: 772e8cc760a5dc97c20c8e88e7b64fcf98ac87a5 (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
# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=diskonaut
pkgver=0.11.0
pkgrel=3
pkgdesc="Terminal disk space navigator"
url="https://github.com/imsnif/diskonaut"
license="MIT"
arch="all !armhf !s390x !riscv64" # doesn't build
makedepends="cargo cargo-auditable"
source="$pkgname-$pkgver.tar.gz::https://github.com/imsnif/diskonaut/archive/refs/tags/$pkgver.tar.gz"
options="net"


prepare() {
	default_prepare
	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --release --frozen
}

check() {
	cargo test --frozen
}

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

sha512sums="
c682f40e9a0592214826beba17a8b875a80a0a258e503fbcc821548fa41b998133cf30e020abffddc4775abb37e1df267669c7e4b3114fe0c4532b9a48972768  diskonaut-0.11.0.tar.gz
"