Skip to content

Commit 67bb4f0

Browse files
committed
Make the repo a Homebrew Tap
1 parent 1df3f0b commit 67bb4f0

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

HomebrewFormula

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pkg/brew

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,11 @@ but you'll need to have the
9797
[Microsoft VC++ 2015 redistributable](https://www.microsoft.com/en-us/download/details.aspx?id=48145)
9898
installed.
9999

100-
If you're a **Homebrew** user, then you can install it with a custom formula
101-
(N.B. `ripgrep` isn't actually in Homebrew yet. This just installs the binary
102-
directly):
100+
If you're a **Homebrew** user, then you can install it with a custom tap:
103101

104102
```
105-
$ brew install https://raw.githubusercontent.com/BurntSushi/ripgrep/master/pkg/brew/ripgrep.rb
103+
$ brew tap burntsushi/ripgrep https://github.com/BurntSushi/ripgrep.git
104+
$ brew install burntsushi/ripgrep/ripgrep
106105
```
107106

108107
If you're an **Arch Linux** user, then you can install `ripgrep` from the official repos:

pkg/brew/ripgrep.rb

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
1-
require 'formula'
21
class Ripgrep < Formula
32
version '0.2.1'
43
desc "Search tool like grep and The Silver Searcher."
54
homepage "https://github.com/BurntSushi/ripgrep"
6-
7-
if Hardware::CPU.is_64_bit?
8-
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
9-
sha256 "f8b208239b988708da2e58f848a75bf70ad144e201b3ed99cd323cc5a699625f"
10-
else
11-
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-i686-apple-darwin.tar.gz"
12-
sha256 "3880ffbc169ea7a884d6c803f3b227a9a3acafff160cdaf830f930e065ae2b38"
13-
end
5+
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
6+
sha256 "f8b208239b988708da2e58f848a75bf70ad144e201b3ed99cd323cc5a699625f"
147

158
def install
169
bin.install "rg"

0 commit comments

Comments
 (0)