cask 'ipe' do
  version '7.2.13'
  sha256 'a50d891f17654eeead65ea13646040631160b3437c66417f1d07253cd9d5966a'

  # bintray.com/otfried was verified as official when first introduced to the cask
  url "https://dl.bintray.com/otfried/generic/ipe/#{version.major_minor}/ipe-#{version}-mac.dmg"
  appcast 'http://ipe.otfried.org/'
  name 'Ipe'
  homepage 'http://ipe.otfried.org/'

  depends_on macos: '>= :yosemite'

  app 'Ipe.app'
  app 'IpePresenter.app'

  zap trash: [
               '~/.ipe',
               '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.otfried.ipe.ipe.sfl*',
               '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.otfried.ipe.sfl*',
               '~/Library/Preferences/org.otfried.ipe.Ipe.plist',
               '~/Library/Saved Application State/org.otfried.ipe.savedState',
             ]
end
