homebrew-cask/Casks/git-annex.rb

49 lines
1.7 KiB
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
if MacOS.release <= :lion
# kitenet.net is the official download host per the vendor homepage
url 'https://downloads.kitenet.net/git-annex/OSX/current/10.7.5_Lion/git-annex.dmg'
elsif MacOS.release == :mountain_lion
# kitenet.net is the official download host per the vendor homepage
url 'https://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'
elsif MacOS.release == :mavericks
# kitenet.net is the official download host per the vendor homepage
url 'https://downloads.kitenet.net/git-annex/OSX/current/10.9_Mavericks/git-annex.dmg'
else
# kitenet.net is the official download host per the vendor homepage
url 'https://downloads.kitenet.net/git-annex/OSX/current/10.10_Yosemite/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'
2015-01-30 04:26:47 +08:00
name 'git-annex'
2015-06-29 14:32:18 +08:00
homepage 'https://git-annex.branchable.com/'
2015-09-01 00:54:19 +08:00
license :gpl
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'
uninstall :launchctl => 'com.branchable.git-annex.assistant'
depends_on :macos => %w{
:lion
:mountain_lion
:mavericks
:yosemite
}
caveats do
files_in_usr_local
2013-11-25 07:50:26 +08:00
end
end