/packages/ripgrep/build.sh

https://github.com/termux/termux-packages · Shell · 26 lines · 18 code · 4 blank · 4 comment · 0 complexity · 1928bf1fb6882c78e7264174375f39f4 MD5 · raw file

  1. TERMUX_PKG_HOMEPAGE=https://github.com/BurntSushi/ripgrep
  2. TERMUX_PKG_DESCRIPTION="Search tool like grep and The Silver Searcher"
  3. TERMUX_PKG_LICENSE="MIT"
  4. TERMUX_PKG_VERSION=12.1.1
  5. TERMUX_PKG_REVISION=1
  6. TERMUX_PKG_SRCURL=https://github.com/BurntSushi/ripgrep/archive/$TERMUX_PKG_VERSION.tar.gz
  7. TERMUX_PKG_SHA256=2513338d61a5c12c8fea18a0387b3e0651079ef9b31f306050b1f0aaa926271e
  8. TERMUX_PKG_BUILD_IN_SRC=true
  9. termux_step_post_make_install() {
  10. # Install man page:
  11. mkdir -p $TERMUX_PREFIX/share/man/man1/
  12. cp $(find . -name rg.1) $TERMUX_PREFIX/share/man/man1/
  13. # Install bash completion script:
  14. mkdir -p $TERMUX_PREFIX/share/bash-completion/completions/
  15. cp $(find . -name rg.bash) $TERMUX_PREFIX/share/bash-completion/completions/rg
  16. # Install fish completion script:
  17. mkdir -p $TERMUX_PREFIX/share/fish/completions/
  18. cp $(find . -name rg.fish) $TERMUX_PREFIX/share/fish/completions/
  19. # Install zsh completion script:
  20. mkdir -p $TERMUX_PREFIX/share/zsh/site-functions/
  21. cp complete/_rg $TERMUX_PREFIX/share/zsh/site-functions/
  22. }