cask 'after-dark-classic' do
  version :latest
  sha256 :no_check

  url 'ftp://www.infinisys.co.jp/online/online_afterdarkclassicset_e.dmg.gz'
  name 'After Dark Classic Set'
  homepage 'http://en.infinisys.co.jp/product/afterdarkclassicset/index.shtml'
  license :commercial

  container nested: "after-dark-classic-#{version}.dmg"

  pkg 'ClassicSet.pkg'

  preflight do
    system '/bin/mv', '--', staged_path.join("after-dark-classic-#{version}"), staged_path.join("after-dark-classic-#{version}.dmg")
  end

  uninstall delete: [
                      '/Library/Screen Savers/Boris.saver',
                      '/Library/Screen Savers/Flying Toasters.saver',
                      '/Library/Screen Savers/Mowing Man.saver',
                    ]

  zap delete: [
                '~/Library/Preferences/ByHost/jp.co.infinisys.boris.*.plist',
                '~/Library/Preferences/ByHost/jp.co.infinisys.flyingtoasters.*.plist',
                '~/Library/Preferences/ByHost/jp.co.infinisys.mowingman.*.plist',
              ]
end

Add the After Dark Classic Set v1.0 from Infinisys.
Add the After Dark Classic Set v1.0 from Infinisys.
