# Contributor: Leo # Maintainer: Jakub Jirutka pkgname=fd pkgver=8.7.0 pkgrel=3 pkgdesc="Simple, fast, user-friendly alternative to find" url="https://github.com/sharkdp/fd" # s390x: fails to build nix crate arch="all !s390x" license="MIT Apache-2.0" makedepends="cargo cargo-auditable" checkdepends="coreutils" options="net" subpackages=" $pkgname-doc $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source="https://github.com/sharkdp/fd/archive/v$pkgver/fd-$pkgver.tar.gz" export CARGO_PROFILE_RELEASE_OPT_LEVEL="z" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --frozen --release make completions # Rebuild without completions (-0.9 MiB). cargo auditable build --frozen --release --no-default-features --features use-jemalloc } check() { cargo test --frozen } package() { install -D -m755 target/release/$pkgname -t "$pkgdir"/usr/bin/ install -D -m644 doc/fd.1 -t "$pkgdir"/usr/share/man/man1/ install -D -m644 autocomplete/fd.bash "$pkgdir"/usr/share/bash-completion/completions/fd install -D -m644 autocomplete/fd.fish "$pkgdir"/usr/share/fish/vendor_completions.d/fd.fish install -D -m644 autocomplete/_fd "$pkgdir"/usr/share/zsh/site-functions/_fd } sha512sums=" 911b9b718f584bed7e569e11f098ede5effdb74822debca677b555e02032844ee7dd5644a5d7ad2d138d358025e08c02590a2ae2e99e8bac4ab1c88835e84c50 fd-8.7.0.tar.gz "