diff --git a/Casks/p/presonus-universal-control.rb b/Casks/p/presonus-universal-control.rb new file mode 100644 index 0000000000000..76797aa16d6c9 --- /dev/null +++ b/Casks/p/presonus-universal-control.rb @@ -0,0 +1,37 @@ +cask "presonus-universal-control" do + version "4.2.0.96206" + sha256 "dd9f9a0ba91bd2f8b09adb694eedc17bb520e165d9102d38537a8bcd8333acdb" + + url "https://pae-web.presonusmusic.com/downloads/products/dmg/PreSonus_Universal_Control_v#{version.dots_to_underscores}.dmg", + verified: "pae-web.presonusmusic.com/" + name "Universal Control" + desc "PreSonus software control interface" + homepage "https://www.presonus.com/products/Universal-Control" + + livecheck do + url "https://legacy.presonus.com/products/Universal-Control/downloads" + regex(/Universal\s?Control\sv?(\d+(?:\.\d+)+)/i) + end + + depends_on macos: ">= :mojave" + + pkg "PreSonus Universal Control.pkg" + + uninstall launchctl: [ + "asp.com.presonus.pae-quantum-audio-plug-in", + "com.presonus.ucdaemon", + ], + pkgutil: [ + "presonus.pkg.Universal.Control.controlpanel", + "presonus.pkg.Universal.Control.daemon", + "presonus.pkg.Universal.Control.presets", + "presonus.pkg.Universal.Control.tb_driver", + ] + + zap trash: [ + "/Library/Application Support/PreSonus/universalcontrol", + "/Library/LaunchDaemons/com.presonus.ucdaemon.plist", + "~/Library/Application Support/PreSonus/universalcontrol", + "~/Library/Preferences/com.presonus.ucapp.plist", + ] +end