cask "cloud-pbx" do arch arm: "arm", intel: "intel" version "45.5.0" sha256 arm: "4484328e512e0d547958c2e9a8a831b98105bb83f9d1727c437f3f97541d21f5", intel: "61902f18a9d9ce6764e745e42ad3643009ea86675beac72d590dbb65453aa268" url "https://cpbx-hilfe.deutschland-lan.de/de/direkthilfe/hilfe-downloads/desktop-clients/cloud-pbx-2.0-#{arch}_v#{version}", verified: "cpbx-hilfe.deutschland-lan.de/de/direkthilfe/hilfe-downloads/desktop-clients/" name "Cloud PBX" desc "Cloud-based telephone system" homepage "https://geschaeftskunden.telekom.de/internet-dsl/tarife/festnetz-internet-dsl/companyflex/cloud-pbx" livecheck do url "https://cpbx-hilfe.deutschland-lan.de/de/direkthilfe/hilfe-downloads/downloads" regex(%r{href=.*?/cloud[._-]pbx[._-]2\.0[._-]#{arch}[._-]v?(\d+(?:\.\d+)+)}i) end depends_on macos: ">= :catalina" app "Cloud PBX 2.0.app" zap trash: [ "~/Library/Application Support/Cisco Spark", "~/Library/Application Support/Telekom Deutschland GmbH", "~/Library/Caches/Telekom Deutschland GmbH", "~/Library/Preferences/Cisco-Systems.Spark.plist", "~/Library/Preferences/com.broadsoft.communicator.plist", "~/Library/Preferences/de.deutschland-lan.Cloud PBX.plist", "~/Library/Saved Application State/Cisco-Systems.Spark.savedState", "~/Library/Saved Application State/com.broadsoft.communicator.savedState", ] end