new bblfs: sys-apps/fd-10.3.0
This commit is contained in:
33
sys-apps/fd-10.3.0.PKGBUILD
Normal file
33
sys-apps/fd-10.3.0.PKGBUILD
Normal file
@@ -0,0 +1,33 @@
|
||||
pkgname=fd
|
||||
pkgver=10.3.0
|
||||
pkgdesc="Alternative to find that provides sensible defaults for 80% of the use cases"
|
||||
homepage="https://github.com/sharkdp/fd"
|
||||
license=("MIT" "Unicode-3.0")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/sharkdp/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("fa7d03cbc4abab02db8ed5cc7f3cb91ba87a6b4a609186edb40db80420a31a7ef671558e7a172008d8d31d9f7ef46ad9f58503129e1a253e36f1c2c15135595b")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
cargo fetch --locked --target "$(rustc --print host-tuple)"
|
||||
}
|
||||
|
||||
src_build() {
|
||||
export CFLAGS+=" -ffat-lto-objects"
|
||||
cargo build --release --locked --offline
|
||||
}
|
||||
|
||||
src_check() {
|
||||
cargo test --locked --offline
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -Dm755 target/release/fd "$pkgdir"/usr/bin/fd
|
||||
|
||||
make completions
|
||||
install -Dm644 autocomplete/fd.bash "$pkgdir"/usr/share/bash-completion/completions/fd
|
||||
install -Dm644 autocomplete/fd.fish "$pkgdir"/usr/share/fish/vendor_completions.d/fd.fish
|
||||
install -Dm644 autocomplete/_fd "$pkgdir"/usr/share/zsh/site-functions/_fd
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
Reference in New Issue
Block a user