cask "segger-ozone" do arch arm: "arm64", intel: "x86_64" version "3.38a" sha256 arm: "20a4d2188ed3dcee06e41fa752505b2ea65913d93bbd6e52e356bdd0146aff85", intel: "873deffb2fc1469155dd974c2d4b53cb096926ffe26d5a2b6042e85a1536aae8" url "https://www.segger.com/downloads/jlink/Ozone_MacOSX_V#{version.no_dots}_#{arch}.pkg", using: :post, data: { "accept_license_agreement" => "accepted", "non_emb_ctr" => "confirmed", "submit" => "Download software", } name "Segger Ozone J-Link Debugger" desc "Software and Documentation pack for Segger Ozone J-Link debugger" homepage "https://www.segger.com/downloads/jlink#Ozone" livecheck do url "https://www.segger.com/downloads/jlink/ReleaseNotes_Ozone.html" regex(/]*>\s*Version\s*(\d+(?:\.\d+)+[a-z]?)/i) end pkg "Ozone_MacOSX_V#{version.no_dots}_#{arch}.pkg" uninstall quit: "com.segger.Ozone.*", pkgutil: "com.segger.pkg.Ozone" zap trash: [ "~/.SEGGER", "~/Library/Application Support/SEGGER/Ozone", "~/Library/Saved Application State/com.segger.Ozone.*savedState", ] caveats do license @cask.url.to_s end end