homebrew-cask/Casks/sapmachine-jdk.rb

15 lines
665 B
Ruby

cask 'sapmachine-jdk' do
version '12.0.2'
sha256 'ede180009ded8bef782e41ad72bd242faa6749ac889297c01777559278fc4848'
# github.com/SAP/SapMachine was verified as official when first introduced to the cask
url "https://github.com/SAP/SapMachine/releases/download/sapmachine-#{version}/sapmachine-jdk-#{version}_osx-x64_bin.tar.gz"
appcast "https://sap.github.io/SapMachine/latest/#{version.major}"
name 'SapMachine OpenJDK Development Kit'
homepage 'https://sapmachine.io/'
artifact "sapmachine-jdk-#{version}.jdk", target: "/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version}.jdk"
uninstall rmdir: '/Library/Java/JavaVirtualMachines'
end