1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/pkg/brew/ripgrep-bin.rb
Andrew Gallant bacfca174e
pkg: update brew tap to version 12.1.0
This also removes Fish shell completions. See #1577 for more details.
2020-05-09 11:42:39 -04:00

24 lines
804 B
Ruby

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