Skip to content
Myr

ripgrep-bin.rb

This file

Path

pkg/brew/ripgrep-bin.rb

23 lines · 804 bytes · Ruby

Last changed by

pkg/brew: update tapAndrew Gallantbefore adoptionf91cde0

History of this file

Take it

1class RipgrepBin < Formula2  version '15.0.0'3  desc "Recursively search directories for a regex pattern."4  homepage "https://github.com/BurntSushi/ripgrep"56  if OS.mac?7      url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"8      sha256 "af7825fcc69a2afc7a7aea55fc9af90e26421d8f20fe59df32e233c0b8a231c1"9  elsif OS.linux?10      url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz"11      sha256 "33e15bcf1624b25cdd2a55813a47a2f95dbe126268203e76aa6a585d1e7b149c"12  end1314  conflicts_with "ripgrep"1516  def install17    bin.install "rg"18    man1.install "doc/rg.1"1920    bash_completion.install "complete/rg.bash"21    zsh_completion.install "complete/_rg"22  end23end