cask :v1 => 'zendserver' do
  version '6.3.0'
  sha256 'a1e7f5c4801ae0658508dcbde9e71e6d914cd2546f5d261c7eb7ae31ef4bd31f'

  url "http://downloads.zend.com/zendserver/#{version}/ZendServer-#{version}-php-5.5.7.dmg"
  name 'Zend Server'
  homepage 'http://www.zend.com/en/products/server/'
  license :unknown    # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder

  pkg 'Zend Server.pkg'

  uninstall :script => { :executable => '/usr/local/zend/bin/uninstall.sh', :args => ['--automatic'] },
            :pkgutil => 'zenith.pkg.ZendServer'
  caveats do
    files_in_usr_local
  end
end
