cask :v1 => 'flavours' do
  version :latest
  sha256 :no_check

  url 'http://flavours-updates.interacto.net/Flavours.dmg'
  appcast 'http://flavours-updates.interacto.net/appcast.xml'
  homepage 'http://flavours.interacto.net/'
  license :unknown    # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder

  app 'Flavours.app'

  uninstall :launchctl => 'net.interacto.flavours.helper',
            :quit  => 'net.interacto.Flavours',
            :delete => [
                        '/usr/local/bin/flavours.agent',
                        '/usr/local/bin/flavours.ignitor',
                        '/usr/local/bin/restoreui',
                        '/usr/local/lib/libflavours.dylib',
                        '/usr/local/lib/libflavoursui.dylib',
                       ]

  caveats do
    files_in_usr_local
  end
end
