homebrew-cask/brew-cask.rb

21 lines
503 B
Ruby
Raw Normal View History

require 'formula'
2013-11-01 08:52:04 +08:00
HOMEBREW_CASK_VERSION = '0.19.4'
class BrewCask < Formula
homepage 'https://github.com/phinze/homebrew-cask/'
2013-09-15 11:49:35 +08:00
url 'https://github.com/phinze/homebrew-cask.git', :tag => "v#{HOMEBREW_CASK_VERSION}"
head 'https://github.com/phinze/homebrew-cask.git', :branch => 'master'
skip_clean 'bin'
def install
prefix.install 'lib' => 'rubylib'
inreplace 'bin/brew-cask.rb', '/lib', '/rubylib'
prefix.install 'Casks', 'bin'
(bin+'brew-cask.rb').chmod 0755
end
end