aports/community/dua/APKBUILD
2024-08-28 01:34:07 +00:00

36 lines
862 B
Plaintext

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=dua
pkgver=2.29.2
pkgrel=0
pkgdesc="Tool to conveniently learn about the usage of disk space"
url="https://github.com/Byron/dua-cli"
license="MIT"
arch="all"
makedepends="cargo cargo-auditable"
source="https://github.com/Byron/dua-cli/archive/v$pkgver/dua-$pkgver.tar.gz"
builddir="$srcdir/dua-cli-$pkgver"
options="net" # fetch dependencies
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --frozen --release
}
check() {
cargo test --frozen
}
package() {
install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/
}
sha512sums="
4edc4e6c0eea17054407d9adfb28065ee4af86e67e994d653a2fa381a36e79af15fdeaf036947a35467afc60a8b09025a30e0ca1f731ac8cda9452e7413bda35 dua-2.29.2.tar.gz
"