1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-06-04 05:57:39 +02:00
ripgrep/pkg/brew/ripgrep.rb

20 lines
682 B
Ruby
Raw Normal View History

2016-09-21 17:28:19 -04:00
require 'formula'
class Ripgrep < Formula
2016-09-25 22:50:50 -04:00
version '0.2.0'
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-25 22:50:50 -04:00
sha256 "f55ef5dac04178bcae0d6c5ba2d09690d326e8c7c3f28e561025b04e1ab81d80"
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-25 22:50:50 -04:00
sha256 "d901d55ccb48c19067f563d42652dfd8642bf50d28a40c0e2a4d3e866857a93b"
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