1 cask "semeru-jdk-open@17" do
2 arch arm: "aarch64", intel: "x64"
4 version "17.0.13+11,openj9-0.48.0"
5 sha256 arm: "961acf3d2c0632891420e42631309a195206076f45cf6d994a5e632c429ec38b",
6 intel: "abf1c017284339f1277e2e764eb612f3eec750c3a420b5ebd99f619b1bd4d27d"
8 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",
9 verified: "github.com/ibmruntimes/semeru#{version.major}-binaries/"
10 name "IBM Semeru Runtime (JDK 17) Open Edition"
11 desc "Production-ready JDK with the OpenJDK class libraries and the Eclipse OpenJ9 JVM"
12 homepage "https://developer.ibm.com/languages/java/semeru-runtimes"
16 regex(/^jdk[._-](\d+(?:[.+]\d+)*)[._-](.+?)$/i)
17 strategy :github_latest do |json, regex|
18 json["tag_name"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" }
22 pkg "ibm-semeru-open-jdk_#{arch}_mac_#{version.csv.first.tr("+", "_")}_#{version.csv.second}.pkg"
24 uninstall pkgutil: "net.ibm-semeru-open.#{version.major}.jdk"
26 # No zap stanza required