# Compiling Time: 0.44 SBU # Maintainer: DeX77 pkgname=ripgrep pkgver=13.0.0 pkgrel=1 pkgdesc="A search tool that combines the usability of ag with the raw speed of grep" archs=('x86_64') groups=('apps') _F_github_author=BurntSushi _F_github_grepv="ignore\|globset" _F_github_tag=y Finclude github depends=('pcre2') makedepends=('cargo' 'ruby-asciidoctor' 'jq') sha1sums=('1e67603fbc5dd955d0f65fb6ea3c380145fbcb01') build() { Fcd Fexec cargo build --release --locked --features 'pcre2' || Fdie OUT_DIR="$(cargo build --release --locked --message-format=json-render-diagnostics | \ jq -r 'select(.out_dir) | select(.package_id | startswith("ripgrep ")) | .out_dir')" echo $OUT_DIR Fexerel target/release/rg usr/bin/rg Finstallrel 644 "complete/_rg" usr/share/zsh/site-functions/_rg Fexec install -Dm644 "$OUT_DIR"/rg.bash $Fdestdir/usr/share/bash-completion/completions/rg || Fdie Fexec install -Dm644 "$OUT_DIR"/rg.fish $Fdestdir/usr/share/fish/vendor_completions.d/rg.fish || Fdie Fexec install -Dm644 "$OUT_DIR"/rg.1 $Fdestdir/usr/share/man/man1/rg.1 } # optimization OK