excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / senadevicemanager.rb
blob9c0c311949776ef7afb971631f85bda8cf495551
1 cask "senadevicemanager" do
2   version "4.4.12"
3   sha256 "97b9f94b9f8aa241577910c4a070560613932f59a5ae657752f3241e06439d1c"
5   url "https://firmware.sena.com/senabluetoothmanager/SENADeviceManagerForMAC-v#{version}.pkg"
6   name "Sena Bluetooth Device Manager"
7   desc "Manager for SENA devices"
8   homepage "https://www.sena.com/support/apps/"
10   livecheck do
11     url "https://firmware.sena.com/senabluetoothmanager/Software"
12     regex(/SENADeviceManagerForMAC[._-]v?(\d+(?:\.\d+)+)\.pkg/i)
13   end
15   depends_on macos: ">= :catalina"
17   pkg "SENADeviceManagerForMAC-v#{version}.pkg"
19   uninstall quit:    [
20               "com.sena.SenaBluetoothDeviceManager",
21               "com.sena.SenaDeviceManager",
22             ],
23             pkgutil: [
24               "com.sena.SenaBluetoothDeviceManager",
25               "com.sena.SenaDeviceManager",
26             ]
28   zap trash: [
29     "~/Library/Caches/com.sena.SenaDeviceManager",
30     "~/Library/HTTPStorages/com.sena.SenaDeviceManager",
31     "~/Library/WebKit/com.sena.SenaDeviceManager",
32   ]
34   caveats do
35     requires_rosetta
36   end
37 end