/ripgrep/recipe.rb

https://github.com/bernd/fpm-recipes · Ruby · 21 lines · 17 code · 4 blank · 0 comment · 0 complexity · 52d03068d08d05bc0d41076b21279c9f MD5 · raw file

  1. class Ripgrep < FPM::Cookery::Recipe
  2. description 'recursively searches directories for a regex pattern'
  3. name 'ripgrep'
  4. version '12.0.1'
  5. revision '1'
  6. homepage 'https://github.com/BurntSushi/ripgrep'
  7. source "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz"
  8. sha256 '2dbd6e0cef8048f26ea9f0d6b5412f117645001c5cec267b3bcd4716a64a7a7a'
  9. def build
  10. end
  11. def install
  12. bin.install 'rg'
  13. man1.install 'doc/rg.1'
  14. doc('ripgrep').install Dir['doc/*.md']
  15. etc('bash_completion.d').install 'complete/rg.bash', 'rg'
  16. end
  17. end