/pkg/brew/ripgrep-bin.rb
Ruby | 23 lines | 19 code | 4 blank | 0 comment | 2 complexity | 67564382c7ed6c43718ab46f8e99f0f5 MD5 | raw file
Possible License(s): MIT, Unlicense
- class RipgrepBin < Formula
- version '12.1.0'
- desc "Recursively search directories for a regex pattern."
- homepage "https://github.com/BurntSushi/ripgrep"
- if OS.mac?
- url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
- sha256 "974351ca7d00083ba2fad52e2f2539c8ff114119c139420f592507962ab43b75"
- elsif OS.linux?
- url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz"
- sha256 "c6bba6d643b1a1f18994683e26d4d2b998b41a7a7360e63cb8ec9db8ffbf793c"
- end
- conflicts_with "ripgrep"
- def install
- bin.install "rg"
- man1.install "doc/rg.1"
- bash_completion.install "complete/rg.bash"
- zsh_completion.install "complete/_rg"
- end
- end