cask 'jxplorer' do
  version '3.3.1'
  sha256 'b51995a93203590e6690d8ad54f73cd7af1c9f2bef6219adca79c58eda71d860'

  # sourceforge.net/sourceforge/jxplorer was verified as official when first introduced to the cask
  url "http://downloads.sourceforge.net/sourceforge/jxplorer/jxplorer/version%20#{version}/jxplorer-#{version}-osx.zip"
  name 'JXplorer'
  homepage 'http://jxplorer.org/'
  license :apache

  app "jxplorer-#{version}.app"

  postflight do
    set_permissions "#{appdir}/jxplorer-#{version}.app/Contents/MacOS/jxplorer", 'a+x'
  end
end
