1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-05-29 21:47:42 +02:00

20 lines
682 B
Ruby
Raw Normal View History

2016-09-21 17:28:19 -04:00
require 'formula'
class Ripgrep < Formula
2016-09-26 20:42:12 -04:00
version '0.2.1'
2016-09-21 17:28:19 -04:00
desc "Search tool like grep and The Silver Searcher."
homepage "https://github.com/BurntSushi/ripgrep"
if Hardware::CPU.is_64_bit?
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
2016-09-27 12:01:22 +02:00
sha256 "f8b208239b988708da2e58f848a75bf70ad144e201b3ed99cd323cc5a699625f"
2016-09-21 17:28:19 -04:00
else
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-i686-apple-darwin.tar.gz"
2016-09-27 12:01:22 +02:00
sha256 "3880ffbc169ea7a884d6c803f3b227a9a3acafff160cdaf830f930e065ae2b38"
2016-09-21 17:28:19 -04:00
end
def install
bin.install "rg"
man1.install "rg.1"
2016-09-21 17:28:19 -04:00
end
end