# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=dua pkgver=2.20.1 pkgrel=1 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=" 23863d95017b4d1f4e1754a450e87b34708e3286ab8f38e248fb8a3f4fd019cfa45cb62b0ca8b77d4af31a53666bae750f4f693a7e120b6281b86fdc2f2d20ef dua-2.20.1.tar.gz "