termux-packages/packages/ripgrep/build.sh

26 lines
1010 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://github.com/BurntSushi/ripgrep
TERMUX_PKG_DESCRIPTION="Search tool like grep and The Silver Searcher"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="MIT"
2020-03-19 20:18:47 +01:00
TERMUX_PKG_VERSION=12.0.0
TERMUX_PKG_SRCURL=https://github.com/BurntSushi/ripgrep/archive/$TERMUX_PKG_VERSION.tar.gz
2020-03-19 20:18:47 +01:00
TERMUX_PKG_SHA256=3c84c3a4c80cee961a2b0d00a4e5d1bc9eb58ba587cf69c06d84aff72fedbeff
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_post_make_install() {
# Install man page:
mkdir -p $TERMUX_PREFIX/share/man/man1/
2019-02-12 09:41:30 +01:00
cp $(find . -name rg.1) $TERMUX_PREFIX/share/man/man1/
# Install bash completion script:
mkdir -p $TERMUX_PREFIX/share/bash-completion/completions/
2019-02-12 09:41:30 +01:00
cp $(find . -name rg.bash) $TERMUX_PREFIX/share/bash-completion/completions/rg
# Install fish completion script:
mkdir -p $TERMUX_PREFIX/share/fish/completions/
2019-02-12 09:41:30 +01:00
cp $(find . -name rg.fish) $TERMUX_PREFIX/share/fish/completions/
# Install zsh completion script:
mkdir -p $TERMUX_PREFIX/share/zsh/site-functions/
cp complete/_rg $TERMUX_PREFIX/share/zsh/site-functions/
}