Skip to content

Commit

Permalink
semeru-jdk-open 23+37
Browse files Browse the repository at this point in the history
Switch to 3 version fields to support initial GA releases.

Signed-off-by: Adam Brousseau <[email protected]>
  • Loading branch information
AdamBrousseau committed Sep 19, 2024
1 parent cd361fb commit 5f0ebe3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Casks/s/semeru-jdk-open.rb
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
cask "semeru-jdk-open" do
arch arm: "aarch64", intel: "x64"

version "22.0.2+9,openj9-0.46.1"
sha256 arm: "f59899423427cc91fec67f107d69fcf1050e421998a1f5cd6a0917ead54e5dc9",
intel: "529754faa471cbbe40e36fc475dcd8e6f2179ee972ac2eb14117c1b58c119153"
version "23,37,openj9-0.47.0"
sha256 arm: "ec5d1b0cb5ba93a2489a04349b639779c741f70e32a3c4a40d5badff9c1d1438",
intel: "5eceb275150ba66cf50231bc98d7ab808516cff886f094b22186b1497bcd1d09"

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",
url "https://github.com/ibmruntimes/semeru#{version.major}-binaries/releases/download/jdk-#{version.csv.first}%2B#{version.csv.second}_#{version.csv.third}/ibm-semeru-open-jdk_#{arch}_mac_#{version.csv.first}_#{version.csv.second}_#{version.csv.third}.pkg",
verified: "github.com/ibmruntimes/"
name "IBM Semeru Runtime (JDK) 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)
regex(/^jdk[._-](\d+[\.\d+]*)[+](\d+)[._-](.+?)$/i)
strategy :github_latest do |json, regex|
json["tag_name"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" }
json["tag_name"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]},#{match[2]}" }
end
end

pkg "ibm-semeru-open-jdk_#{arch}_mac_#{version.csv.first.tr("+", "_")}_#{version.csv.second}.pkg"
pkg "ibm-semeru-open-jdk_#{arch}_mac_#{version.csv.first}_#{version.csv.second}_#{version.csv.third}.pkg"

uninstall pkgutil: "net.ibm-semeru-open.#{version.major}.jdk"

Expand Down

0 comments on commit 5f0ebe3

Please sign in to comment.