diff options
Diffstat (limited to 'community/dust/APKBUILD')
-rw-r--r-- | community/dust/APKBUILD | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/community/dust/APKBUILD b/community/dust/APKBUILD index d618ec6137d..5d29e69c6f7 100644 --- a/community/dust/APKBUILD +++ b/community/dust/APKBUILD @@ -1,42 +1,50 @@ # Contributor: Jakub Jirutka <jakub@jirutka.cz> # Maintainer: Jakub Jirutka <jakub@jirutka.cz> pkgname=dust -pkgver=0.6.1 -pkgrel=0 +pkgver=1.0.0 +pkgrel=1 pkgdesc="A more intuitive version of du in Rust" url="https://github.com/bootandy/dust" -arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by rust/cargo +# riscv64: rust broken +arch="all !riscv64" license="Apache-2.0" -makedepends="cargo" +makedepends="cargo cargo-auditable" +options="net" +subpackages=" + $pkgname-doc + $pkgname-bash-completion + $pkgname-fish-completion + $pkgname-zsh-completion + " source="https://github.com/bootandy/dust/archive/v$pkgver/dust-$pkgver.tar.gz" +export CARGO_PROFILE_RELEASE_OPT_LEVEL="z" + prepare() { default_prepare - # Optimize binary for size (2.5 -> 1.6 MiB). - cat >> Cargo.toml <<-EOF - - [profile.release] - codegen-units = 1 - lto = true - opt-level = "z" - panic = "abort" - EOF + cargo fetch --target="$CTARGET" --locked + # this test runs dust and expects the output to match 100%, + # which fails a lot of the time on various systems as you can't guarantee that + rm tests/test_exact_output.rs } build() { - cargo build --release --locked + cargo auditable build --release --frozen } check() { - cargo test --release --locked + cargo test --frozen } package() { - cargo install --locked --path . --root="$pkgdir/usr" - rm "$pkgdir"/usr/.crates* + install -D -m755 target/release/$pkgname -t "$pkgdir"/usr/bin/ + install -D -m644 completions/dust.bash "$pkgdir"/usr/share/bash-completion/completions/dust + install -D -m644 completions/dust.fish "$pkgdir"/usr/share/fish/vendor_completions.d/dust.fish + install -D -m644 completions/_dust "$pkgdir"/usr/share/zsh/site-functions/_dust + install -D -m644 man-page/dust.1 "$pkgdir"/usr/share/man/man1/dust.1 } sha512sums=" -c83b0c938c0495c55e6548537f15cb0e377baa68fa1c761b4ac31ebc8c3636cf96a293a51b1492fc78daefcf03d7a3183c1fa741ec5118cab716dd746abc724b dust-0.6.1.tar.gz +21ecf6998f760593604c651067640f959cce46b39ca8adb8833277aa7a72afc212db37a78210ad49a2f305508b84f66057cb0f1162017dc4ad8c6d8932841aa3 dust-1.0.0.tar.gz " |