From 5a6d6f2570b2483d272892ea7fb3ba0ee10d41bc Mon Sep 17 00:00:00 2001 From: zyoshoka <107108195+zyoshoka@users.noreply.github.com> Date: Fri, 3 Jan 2025 23:31:36 +0900 Subject: [PATCH 1/2] font-gd-highwaygothicja 112b2 (new cask) --- Casks/font/font-g/font-gd-highwaygothicja.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Casks/font/font-g/font-gd-highwaygothicja.rb diff --git a/Casks/font/font-g/font-gd-highwaygothicja.rb b/Casks/font/font-g/font-gd-highwaygothicja.rb new file mode 100644 index 0000000000000..b12a5c317e861 --- /dev/null +++ b/Casks/font/font-g/font-gd-highwaygothicja.rb @@ -0,0 +1,18 @@ +cask "font-gd-highwaygothicja" do + version "112b2" + sha256 "7f9af8273b302fdd1dbd85cee8060833b8fd872d244686899b0c5c62c3ffc951" + + url "https://542.jp/font/data/GDHighwayGoJA-Rev#{version}-OTF.zip" + name "GD-HighwayGothicJA" + name "GD-高速道路ゴシックJA" + homepage "https://542.jp/font/" + + livecheck do + url :homepage + regex(/GDHighwayGoJA-Rev(\d+(?:b\d+))-OTF\.zip/) + end + + font "GDHighwayGoJA-Rev#{version}-OTF/GDhwGoJA-OTF#{version}.otf" + + # No zap stanza required +end From 4001640ede058ae0274be88209ee57c613ae0184 Mon Sep 17 00:00:00 2001 From: zyoshoka <107108195+zyoshoka@users.noreply.github.com> Date: Sat, 4 Jan 2025 00:16:48 +0900 Subject: [PATCH 2/2] font-gd-highwaygothicja: update livecheck Co-authored-by: Klaus Hipp --- Casks/font/font-g/font-gd-highwaygothicja.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/font/font-g/font-gd-highwaygothicja.rb b/Casks/font/font-g/font-gd-highwaygothicja.rb index b12a5c317e861..1526532df625d 100644 --- a/Casks/font/font-g/font-gd-highwaygothicja.rb +++ b/Casks/font/font-g/font-gd-highwaygothicja.rb @@ -9,7 +9,7 @@ livecheck do url :homepage - regex(/GDHighwayGoJA-Rev(\d+(?:b\d+))-OTF\.zip/) + regex(/GDHighwayGoJA[._-]Rev(\d+(?:\.\d+)*(?:b\d+)?)[._-]OTF\.zip/) end font "GDHighwayGoJA-Rev#{version}-OTF/GDhwGoJA-OTF#{version}.otf"