kvirc 5.2.0

This commit is contained in:
Bevan Kay
2024-02-08 20:17:08 +00:00
parent fe6709326f
commit cb53703bf2
+18 -5
View File
@@ -1,15 +1,28 @@
cask "kvirc" do
version "5.0.0"
sha256 "d0793ab8a14de5388bc36f99945191120ec3349ab3f2c24f76f4dd11ab9b4874"
version "5.2.0,Quasar"
sha256 "945e51861f031c7adbdb5f3d7322f94b40850c33a7d050300dfb30d3d5e2bdd1"
url "ftp://ftp.kvirc.net/pub/kvirc/#{version}/binary/macosx/KVIrc-#{version}.dmg"
url "https://github.com/kvirc/KVIrc/releases/download/#{version.csv.first}/KVIrc-#{version.csv.first}-#{version.csv.second}.dmg",
verified: "github.com/kvirc/KVIrc/"
name "KVIrc"
desc "IRC Client"
homepage "https://www.kvirc.net/"
livecheck do
url "https://www.kvirc.net/?id=releases&platform=macosx"
regex(/href=.*?version=(\d+(?:\.\d+)+)/i)
url :url
regex(/^KVIrc[._-]v?(\d+(?:\.\d+)+)[._-](\w+)\.dmg/i)
strategy :github_releases do |json, regex|
json.map do |release|
next if release["draft"] || release["prerelease"]
release["assets"]&.map do |asset|
match = asset["name"]&.match(regex)
next if match.blank?
"#{match[1]},#{match[2]}"
end
end.flatten
end
end
depends_on macos: ">= :high_sierra"