summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-09-21 17:28:19 -0400
committerAndrew Gallant <jamslam@gmail.com>2016-09-21 17:28:19 -0400
commitdad73b92eb168e7ec4830d7fd1397ae72211ece9 (patch)
tree61517d7080ef4ba0628e0385b6c4a9a99bb65ece /pkg
parentb0d8ff6f4a0889701a3a0e88e5610faec93207b2 (diff)
Add brew.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/brew/ripgrep.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg/brew/ripgrep.rb b/pkg/brew/ripgrep.rb
new file mode 100644
index 00000000..c3c45095
--- /dev/null
+++ b/pkg/brew/ripgrep.rb
@@ -0,0 +1,16 @@
+require 'formula'
+class Ripgrep < Formula
+ version '0.1.8'
+ 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"
+ else
+ url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-i686-apple-darwin.tar.gz"
+ end
+
+ def install
+ bin.install "rg"
+ end
+end