homebrew-cask/Casks/git-annex.rb

30 lines
999 B
Ruby
Raw Normal View History

2014-11-14 01:25:56 +08:00
cask :v1 => 'git-annex' do
2014-10-07 22:43:00 +08:00
version :latest
sha256 :no_check
2014-12-09 20:25:24 +08:00
if MacOS.version <= :mountain_lion
2013-11-25 07:50:26 +08:00
url 'http://downloads.kitenet.net/git-annex/OSX/current/10.8.2_Mountain_Lion/git-annex.dmg.bz2'
2014-10-07 22:43:00 +08:00
# This is a horrible hack to force the file extension. The
# backend code should be fixed so that this is not needed.
2014-09-09 20:55:27 +08:00
preflight do
2014-11-21 22:37:55 +08:00
system '/bin/mv', '--', staged_path.join('git-annex-latest'), staged_path.join('git-annex-latest.dmg')
end
2014-10-09 23:40:46 +08:00
container :nested => 'git-annex-latest.dmg'
else
url 'http://downloads.kitenet.net/git-annex/OSX/current/10.9_Mavericks/git-annex.dmg'
2013-11-25 07:50:26 +08:00
end
2014-10-07 22:43:00 +08:00
2014-09-16 01:53:37 +08:00
gpg "#{url}.sig",
:key_url => 'https://downloads.kitenet.net/git-annex/gpg-pubkey.asc'
2013-11-25 07:50:26 +08:00
homepage 'http://git-annex.branchable.com/'
2014-12-10 21:49:31 +08:00
license :unknown # todo: improve this machine-generated value
2014-10-07 22:43:00 +08:00
2014-09-16 00:05:37 +08:00
app 'git-annex.app'
binary 'git-annex.app/Contents/MacOS/git-annex'
binary 'git-annex.app/Contents/MacOS/git-annex-shell'
caveats do
files_in_usr_local
2013-11-25 07:50:26 +08:00
end
end