contrib/fd/Pkgfile

23 lines
906 B
Plaintext
Raw Normal View History

2020-05-30 14:30:04 +02:00
# Description: Simple, fast and user-friendly alternative to find
# URL: https://github.com/sharkdp/fd
2023-02-25 13:22:53 +01:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2020-05-30 14:30:04 +02:00
# Depends on: rust
name=fd
2023-12-20 16:39:04 +01:00
version=9.0.0
2020-05-30 14:30:04 +02:00
release=1
source=(https://github.com/sharkdp/fd/archive/v$version/$name-v$version.tar.gz)
build() {
2023-02-25 13:22:53 +01:00
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
2020-05-30 14:30:04 +02:00
2023-02-25 13:22:53 +01:00
cargo build --release --manifest-path $name-$version/Cargo.toml
2022-11-04 06:38:07 +01:00
2023-02-25 13:22:53 +01:00
install -Dt $PKG/usr/bin $name-$version/target/release/$name
2020-05-30 14:30:04 +02:00
2023-02-25 13:22:53 +01:00
prt-get isinst bash-completions && install -Dm644 $name-$version/target/release/build/fd-find-*/out/fd.bash $PKG/usr/share/bash-completion/completions/fd
prt-get isinst zsh && install -Dm644 $name-$version/contrib/completion/_fd $PKG/usr/share/zsh/site-functions/_fd
install -Dm644 $name-$version/doc/fd.1 $PKG/usr/share/man/man1/fd.1
2020-05-30 14:30:04 +02:00
}