cask :v1 => 'openarena' do
  version '0.8.8'
  sha256 '5a8faf7f5b51f351b0a1618c06b6b98a5f1a6758f1d39818de2c87df2a0bac4a'

  url 'http://openarena.ws/request.php?4'
  name 'OpenArena'
  homepage 'http://openarena.ws'
  license :gpl

  app "openarena-#{version}/OpenArena.app"

  postflight do
    system '/bin/chmod', '--', '755', "#{staged_path}/openarena-#{version}/OpenArena.app/Contents/MacOS/openarena.ub"
  end
end
