excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / k / kvirc.rb
blobae66f3ffdb4c5928a5fcdd86fcc19abbba9efd33
1 cask "kvirc" do
2   version "5.2.6,Quasar"
3   sha256 "2aeb70d17289a6921018aa696c9ecb529d6c77c3cb98e1599098d8fc62106f9f"
5   url "https://github.com/kvirc/KVIrc/releases/download/#{version.csv.first}/KVIrc-#{version.csv.first}-#{version.csv.second}.dmg",
6       verified: "github.com/kvirc/KVIrc/"
7   name "KVIrc"
8   desc "IRC Client"
9   homepage "https://www.kvirc.net/"
11   livecheck do
12     url :url
13     regex(/^KVIrc[._-]v?(\d+(?:\.\d+)+)[._-](\w+)\.dmg/i)
14     strategy :github_releases do |json, regex|
15       json.map do |release|
16         next if release["draft"] || release["prerelease"]
18         release["assets"]&.map do |asset|
19           match = asset["name"]&.match(regex)
20           next if match.blank?
22           "#{match[1]},#{match[2]}"
23         end
24       end.flatten
25     end
26   end
28   depends_on macos: ">= :high_sierra"
30   app "KVIrc.app"
32   zap trash: [
33     "~/.kvirc*.rc",
34     "~/Library/Preferences/com.kvirc.kvirc.plist",
35     "~/Library/Saved Application State/com.kvirc.kvirc.savedState",
36   ]
38   caveats do
39     requires_rosetta
40   end
41 end