homebrew-cask/Casks/alib1.rb

23 lines
900 B
Ruby
Raw Normal View History

2014-11-14 01:25:21 +08:00
cask :v1 => 'alib1' do
# note: "1" is not a version number, but an intrinsic part of the product name
2014-09-17 19:42:37 +08:00
version :latest
2014-05-08 20:51:31 +08:00
sha256 :no_check
url 'http://presstube.com/screensavers/Presstube-ALib1-mac.zip'
homepage 'http://presstube.com/blog/2011/alib1/'
2014-12-10 21:48:54 +08:00
license :unknown # todo: improve this machine-generated value
2014-01-28 23:19:04 +08:00
screen_saver 'Presstube-ALib1.app/Contents/Resources/Presstube - ALib1.saver'
2014-09-09 20:55:26 +08:00
postflight do
2014-11-13 08:14:12 +08:00
system '/usr/libexec/PlistBuddy', '-c', 'Set :CFBundleName ALib1 (Presstube)', "#{staged_path}/presstube-alib1.app/Contents/Resources/Presstube - ALib1.saver/Contents/Info.plist"
2014-01-28 23:19:04 +08:00
end
2014-12-05 23:32:48 +08:00
# todo: transitional, replace #{self.name...} with #{token}
2014-10-04 21:50:18 +08:00
caveats <<-EOS.undent
2014-12-05 23:32:48 +08:00
#{self.name.sub(/^KlassPrefix/,'').gsub(/([a-zA-Z\d])([A-Z])/,'\1-\2').gsub(/([a-zA-Z\d])([A-Z])/,'\1-\2').downcase} requires Adobe Air, available via
2014-01-28 23:19:04 +08:00
2014-10-04 21:50:18 +08:00
brew cask install adobe-air
EOS
2014-01-28 23:19:04 +08:00
end