Merge pull request #198799 from Homebrew/bump-huly-0.6.411
[Homebrew/homebrew-cask.git] / Casks / r / resolume-arena.rb
blobc55307fa39a35a4a6460f8c6404b9bc37396a587
1 cask "resolume-arena" do
2   version "7.22.3,42822"
3   sha256 "aab0c99162df0d1393eacdc9ebb381beb5765523619af57d878569d7335f7dbc"
5   url "https://dd5sgwxv3xok.cloudfront.net/Resolume_Arena_#{version.csv.first.dots_to_underscores}_rev_#{version.csv.second}_Installer.dmg",
6       verified: "dd5sgwxv3xok.cloudfront.net/"
7   name "Resolume Arena"
8   desc "Video mapping software"
9   homepage "https://resolume.com/"
11   livecheck do
12     url "https://resolume.com/update/arena_updates_mac.xml"
13     regex(/^v?(\d+(?:\.\d+)+)\s*rev\s*(\d+)$/i)
14     strategy :sparkle do |item, regex|
15       match = item.short_version&.match(regex)
16       next if match.blank?
18       "#{match[1]},#{match[2]}"
19     end
20   end
22   auto_updates true
23   depends_on macos: ">= :catalina"
25   pkg "Resolume Arena Installer.pkg"
27   uninstall launchctl: "com.resolume.arena",
28             signal:    ["TERM", "com.resolume.arena"],
29             pkgutil:   [
30               "com.resolume.pkg.ResolumeAlley",
31               "com.resolume.pkg.ResolumeArena.*",
32               "com.resolume.pkg.ResolumeCommon",
33               "com.resolume.pkg.ResolumeDXV",
34               "com.resolume.pkg.ResolumeQuickLook",
35               "com.resolume.pkg.ResolumeWire",
36               "com.resolume.pkg.ResolumeWireNodes",
37             ],
38             delete:    "/Applications/Resolume Arena #{version.major}"
40   zap pkgutil: [
41     "com.resolume.pkg.ResolumeDXV",
42     "com.resolume.pkg.ResolumeQuickLook",
43   ]
44 end