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
|
|
|
|
2014-03-25 00:48:26 +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')
|
2014-03-25 00:48:26 +08:00
|
|
|
end
|
2014-10-09 23:40:46 +08:00
|
|
|
container :nested => 'git-annex-latest.dmg'
|
2014-08-09 22:10:15 +08:00
|
|
|
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'
|
2014-02-25 01:08:28 +08:00
|
|
|
binary 'git-annex.app/Contents/MacOS/git-annex'
|
2014-05-01 06:40:06 +08:00
|
|
|
binary 'git-annex.app/Contents/MacOS/git-annex-shell'
|
2014-01-15 06:41:11 +08:00
|
|
|
caveats do
|
2014-02-25 01:08:28 +08:00
|
|
|
files_in_usr_local
|
2013-11-25 07:50:26 +08:00
|
|
|
end
|
|
|
|
end
|