diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2020-05-30 22:30:04 +1000 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2020-05-30 22:30:04 +1000 |
commit | 0d8607b1687a782a49b3be32832d09d2c5efa1ac (patch) | |
tree | dae2cf2ff8a40d48fbb30019f4d3ba5e1e848ef0 /fd/Pkgfile | |
parent | 3d25a7fa6eb00abacfaf9d66fab73b6c6aeebf44 (diff) | |
download | contrib-0d8607b1687a782a49b3be32832d09d2c5efa1ac.tar.gz contrib-0d8607b1687a782a49b3be32832d09d2c5efa1ac.tar.xz |
fd: initial import from romster
Diffstat (limited to 'fd/Pkgfile')
-rw-r--r-- | fd/Pkgfile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/fd/Pkgfile b/fd/Pkgfile new file mode 100644 index 000000000..a0d72082e --- /dev/null +++ b/fd/Pkgfile @@ -0,0 +1,26 @@ +# Description: Simple, fast and user-friendly alternative to find +# URL: https://github.com/sharkdp/fd +# Maintainer: Danny Rawlins, crux at romster dot me +# Depends on: rust + +name=fd +version=8.1.1 +release=1 +source=(https://github.com/sharkdp/fd/archive/v$version/$name-v$version.tar.gz) + +build() { + cd $name-$version + + prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache + mkdir "$PKGMK_SOURCE_DIR/rust" || true + export CARGO_HOME="$PKGMK_SOURCE_DIR/rust" + + cargo fetch + cargo build --release --locked + + install -Dm755 target/release/fd $PKG/usr/bin/fd + install -Dm644 target/release/build/fd-find-*/out/fd.bash $PKG/usr/share/bash-completion/completions/fd + install -Dm644 target/release/build/fd-find-*/out/fd.fish $PKG/usr/share/fish/vendor_completions.d/fd.fish + install -Dm644 target/release/build/fd-find-*/out/_fd $PKG/usr/share/zsh/site-functions/_fd + install -Dm644 doc/fd.1 $PKG/usr/share/man/man1/fd.1 +} |