mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-22 06:02:18 +02:00
this is a million times faster new only in rust 1.68, and fails on older versions, but we have only latest in aports and don't support anything else, so it's okay.
28 lines
802 B
Plaintext
28 lines
802 B
Plaintext
# Contributor: guddaff <guddaff@protonmail.com>
|
|
# Maintainer: guddaff <guddaff@protonmail.com>
|
|
pkgname=diskus
|
|
pkgver=0.7.0
|
|
pkgrel=0
|
|
pkgdesc="fast alternative for du"
|
|
url="https://github.com/sharkdp/diskus"
|
|
arch="all !s390x !riscv64" # limited by cargo
|
|
options="!check" #size_of_single_file test timout on armhf
|
|
license="MIT"
|
|
makedepends="cargo"
|
|
source="$pkgname-$pkgdir.tar.gz::https://github.com/sharkdp/diskus/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
|
|
|
|
build() {
|
|
cargo build --release --locked
|
|
}
|
|
|
|
package() {
|
|
cargo install --locked --path . --root="$pkgdir/usr"
|
|
rm "$pkgdir"/usr/.crates*
|
|
}
|
|
|
|
sha512sums="
|
|
092e3640000fb233d975efa2513cec1020376f93a106b9a2c19a390c27f37298dc3b412a0853cb3c1ab267f5b16cfc7379307c2e6599b9396369e1e1dcc5803a diskus-.tar.gz
|
|
"
|