cask 'xampp' do
  version '5.6.3-0'
  sha256 '23cd1b990397958b31e5904a340f416aed98b767a868bbcad7be123f53878828'

  # sourceforge.net is the official download host per the vendor homepage
  url "http://downloads.sourceforge.net/project/xampp/XAMPP%20Mac%20OS%20X/#{version.sub(%r{-\d+$}, '')}/xampp-osx-#{version}-installer.dmg"
  name 'XAMPP'
  homepage 'https://www.apachefriends.org/'
  license :gpl

  installer :script => 'XAMPP.app/Contents/MacOS/osx-intel',
            :args   => ['--mode', 'unattended']

  uninstall :quit   => 'com.bitnami.manager',
            :delete => '/Applications/XAMPP/'
end
