ports/contrib (3.5): fd: initial import from romster
commit 0d8607b1687a782a49b3be32832d09d2c5efa1ac Author: Danny Rawlins <monster.romster@gmail.com> Date: Sat May 30 22:30:04 2020 +1000 fd: initial import from romster diff --git a/fd/.footprint b/fd/.footprint new file mode 100644 index 000000000..5322ad9de --- /dev/null +++ b/fd/.footprint @@ -0,0 +1,16 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/fd +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/bash-completion/ +drwxr-xr-x root/root usr/share/bash-completion/completions/ +-rw-r--r-- root/root usr/share/bash-completion/completions/fd +drwxr-xr-x root/root usr/share/fish/ +drwxr-xr-x root/root usr/share/fish/vendor_completions.d/ +-rw-r--r-- root/root usr/share/fish/vendor_completions.d/fd.fish +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/fd.1.gz +drwxr-xr-x root/root usr/share/zsh/ +drwxr-xr-x root/root usr/share/zsh/site-functions/ +-rw-r--r-- root/root usr/share/zsh/site-functions/_fd diff --git a/fd/.signature b/fd/.signature new file mode 100644 index 000000000..b8168faf3 --- /dev/null +++ b/fd/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF3/IQdIUtig3QA9QpP1EMNXSad95oDZAKwFXgWRQwLjey2WTU5dEqbLpqOb6opieNyrwXL3yi6qEO1+c87O7+ygU= +SHA256 (Pkgfile) = bb91b577c2b6bdd618e175200b3595ab74c3df75ae50d6ebeb1e311b30411beb +SHA256 (.footprint) = 84890c775cb86622f0b4e64a63cbefdd9f8b5d58ffa31163c7f78f973b125613 +SHA256 (fd-v8.1.1.tar.gz) = 7b327dc4c2090b34c7fb3e5ac7147f7bbe6266c2d44b182038d36f3b1d347cc1 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 +}
participants (1)
-
crux@crux.nu