Skip to content

Commit

Permalink
Support ripgrep-bin installation with linuxbrew
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Ferrand committed Oct 26, 2017
1 parent 1aec4b1 commit eb5efb2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/brew/ripgrep-bin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ class RipgrepBin < Formula
version '0.7.1'
desc "Search tool like grep and The Silver Searcher."
homepage "https://github.com/BurntSushi/ripgrep"
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
sha256 "ee670b0fba46323ee9a2d1c5b8bee46fa3e45778f6f105f2e8e9ee29e8bd0d45"

if OS.mac?
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
sha256 "ee670b0fba46323ee9a2d1c5b8bee46fa3e45778f6f105f2e8e9ee29e8bd0d45"
elsif OS.linux?
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz"
sha256 "ac595c2239b9a30e0e0744578afa6b73e32cdd8ae61d4f1c0ee5d6b55adbadcf"
end

conflicts_with "ripgrep"

Expand Down

0 comments on commit eb5efb2

Please sign in to comment.