cask "cloud-pbx" do arch arm: "arm", intel: "intel" version "46.8" sha256 arm: "c9e122a96ddf47b18360aa466051609ba89eeb7dcf0f98fd6869822641f1349b", intel: "a800d65eff4232fbe43a93366e346dbccc179aee27ff2ae9382055406249bc49" url "https://cpbx-hilfe.deutschland-lan.de/de/direkthilfe/hilfe-downloads/desktop-clients/cloud-pbx-2.0-#{arch}_v#{version}" 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: :ventura app "Cloud PBX 2.0.app" zap trash: [ "~/Library/Application Support/Cisco Spark", "~/Library/Application Support/Telekom Deutschland GmbH", "~/Library/Caches/Cisco-Systems.Spark", "~/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