homebrew-cask/Casks/virtual-ii.rb

28 lines
779 B
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'virtual-ii' do
2016-08-08 03:12:48 +08:00
if MacOS.version <= :leopard
version '6.3.7'
sha256 '518c40b94039db64a26664cd8644e0e06dc71e7e8c72ca65294c01836464b770'
url "http://virtualii.com/VirtualII_#{version.dots_to_underscores}.dmg"
else
2015-01-09 07:57:38 +08:00
version :latest
sha256 :no_check
url 'http://virtualii.com/VirtualII.dmg'
end
name 'Virtual ]['
homepage 'http://virtualii.com/'
suite 'Virtual ]['
preflight do
# There is no sub-folder in the DMG; the root *is* the folder
FileUtils.mv(staged_path.children, staged_path.join('Virtual ][').tap(&:mkpath))
end
caveats <<-EOS.undent
This app requires a ROM image, which must be downloaded and installed
separately. See #{homepage}VirtualIIHelp/virtual_II_help.html#ROMImage
for more info.
EOS
end