cask 'dupin' do
  if MacOS.release <= :lion
    version '2.7.4'
    sha256 '4aba53f356606614627d57f6a33c1ee9cf13ddf06c13e7ac8487b930cb647b85'
  else
    version '2.10.0'
    sha256 '44b47c6dfb83dda4991110875168aa0af6457325ae7b6b5e583c08335942474d'
  end

  url "http://dougscripts.com/itunes/scrx/dupinv#{version.delete('.')}.zip"
  appcast 'http://dougscripts.com/itunes/itinfo/dupin_appcast.xml',
          :sha256 => '3cdae322982516e07b9d9c28512a9fa71de086a804e605094690d20c81c638bc'
  name 'Dupin'
  homepage 'http://dougscripts.com/apps/dupinapp.php'
  license :commercial

  depends_on :macos => '>= :snow_leopard'

  app 'Dupin.app'
end
