excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / segger-ozone.rb
blob26b11b0384daec8183b4a072bbac96daae042ae3
1 cask "segger-ozone" do
2   arch arm: "arm64", intel: "x86_64"
4   version "3.38b"
5   sha256 arm:   "f88ff4eee11f0507b29a3298da530d674677ddba9dde1a3c381a357d2caa73b1",
6          intel: "f026abf10000498a4b997425b16dd36f39dbe13f8e5e3ed22f0243c11c9d2f85"
8   url "https://www.segger.com/downloads/jlink/Ozone_MacOSX_V#{version.no_dots}_#{arch}.pkg",
9       using: :post,
10       data:  {
11         "accept_license_agreement" => "accepted",
12         "non_emb_ctr"              => "confirmed",
13         "submit"                   => "Download software",
14       }
15   name "Segger Ozone J-Link Debugger"
16   desc "Software and Documentation pack for Segger Ozone J-Link debugger"
17   homepage "https://www.segger.com/downloads/jlink#Ozone"
19   livecheck do
20     url "https://www.segger.com/downloads/jlink/ReleaseNotes_Ozone.html"
21     regex(/<h2[^>]*>\s*Version\s*(\d+(?:\.\d+)+[a-z]?)/i)
22   end
24   pkg "Ozone_MacOSX_V#{version.no_dots}_#{arch}.pkg"
26   uninstall quit:    "com.segger.Ozone.*",
27             pkgutil: "com.segger.pkg.Ozone"
29   zap trash: [
30     "~/.SEGGER",
31     "~/Library/Application Support/SEGGER/Ozone",
32     "~/Library/Saved Application State/com.segger.Ozone.*savedState",
33   ]
35   caveats do
36     license @cask.url.to_s
37   end
38 end