cask "semeru-jdk-open@11" do arch arm: "aarch64", intel: "x64" version "11.0.25+9,openj9-0.48.0" sha256 arm: "b459b98389ddc74e4aba16828fc200702c62029d5b4f4af6dd0ef94e57e1d47a", intel: "7575f522faf3315d0874d8e3550f5102bda6017346fb915b3db47188765e6033" url "https://github.com/ibmruntimes/semeru#{version.major}-binaries/releases/download/jdk-#{version.csv.first}_#{version.csv.second}/ibm-semeru-open-jdk_#{arch}_mac_#{version.csv.first.tr("+", "_")}_#{version.csv.second}.pkg", verified: "github.com/ibmruntimes/semeru#{version.major}-binaries/" name "IBM Semeru Runtime (JDK 11) Open Edition" desc "Production-ready JDK with the OpenJDK class libraries and the Eclipse OpenJ9 JVM" homepage "https://developer.ibm.com/languages/java/semeru-runtimes" livecheck do url :url regex(/^jdk[._-](\d+(?:[.+]\d+)*)[._-](.+?)$/i) strategy :github_latest do |json, regex| json["tag_name"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" } end end pkg "ibm-semeru-open-jdk_#{arch}_mac_#{version.csv.first.tr("+", "_")}_#{version.csv.second}.pkg" uninstall pkgutil: "net.ibm-semeru-open.#{version.major}.jdk" # No zap stanza required end