37. require 'formula'
!
HOMEBREW_PT_VERSION='1.7.1'
class Pt < Formula
homepage 'https://github.com/monochromegane/the_platinum_searcher'
url "https://github.com/monochromegane/the_platinum_searcher/
releases/download/v#{HOMEBREW_PT_VERSION}/pt_darwin_amd64.zip"
sha1 '00844c339ca864bdae77fe4481a103456760181e'
!
version HOMEBREW_PT_VERSION
def install
bin.install 'pt'
end
end
formula
• URL指定でzipファイルを指定するとコンパイル済みのファイ
ルからインストールできてインストール時間を短縮できる