2014-01-27 13:54:13 +08:00
|
|
|
class Decitime < Cask
|
|
|
|
version '1.0.1'
|
2014-02-24 20:52:32 +08:00
|
|
|
sha256 '3fcd9d6af7cf4710abd42df4db418432ca1758ba8db7affecb1a466d1996f877'
|
2014-06-27 08:01:06 +08:00
|
|
|
|
|
|
|
url 'http://download.filewell.com/DeciTime101.dmg.zip'
|
|
|
|
homepage 'http://www.tinbert.com/DeciTimeMac/'
|
|
|
|
|
2014-01-27 13:54:13 +08:00
|
|
|
nested_container 'DeciTime101.dmg'
|
|
|
|
link 'DeciTime.app'
|
|
|
|
|
|
|
|
# fix wonky DMG by mounting it once read-write per discussion at
|
2014-05-03 23:16:12 +08:00
|
|
|
# https://github.com/caskroom/homebrew-cask/pull/2654
|
2014-01-27 13:54:13 +08:00
|
|
|
before_install do
|
2014-05-14 21:21:47 +08:00
|
|
|
system %Q{/usr/bin/hdiutil eject "$(/usr/bin/hdiutil mount -readwrite -noidme -nobrowse -mountrandom /tmp #{destination_path.join(artifacts[:nested_container].first)} | /usr/bin/cut -f3 -- - | /usr/bin/grep -- '.' -)" >/dev/null 2>&1}
|
2014-01-27 13:54:13 +08:00
|
|
|
end
|
|
|
|
end
|