Merge pull request #198799 from Homebrew/bump-huly-0.6.411
[Homebrew/homebrew-cask.git] / Casks / n / nordic-nrf-command-line-tools.rb
blob414a36d0175d2df072646fd6078288e6a31098d7
1 cask "nordic-nrf-command-line-tools" do
2   version "10.24.2"
3   sha256 "c7f24bb4234e3e99e408a3f7cca568898a51779f2f337604c2e8d60466939c2e"
5   url "https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-command-line-tools/sw/versions-#{version.major}-x-x/#{version.dots_to_hyphens}/nrf-command-line-tools-#{version}-darwin.dmg",
6       verified: "nsscprodmedia.blob.core.windows.net/"
7   name "nRF Command Line Tools"
8   desc "Command-line tools for Nordic nRF Semiconductors"
9   homepage "https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools"
11   livecheck do
12     url "https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools/Download"
13     regex(/nRF[._-]Command[._-]Line[._-]Tools[._-]v?(\d+(?:[._]\d+)+)[._-]Darwin\.dmg/i)
14     strategy :page_match do |page, regex|
15       page.scan(regex).map { |match| match[0].tr("_", ".") }
16     end
17   end
19   depends_on cask: "segger-jlink"
21   pkg ".nRF-Command-Line-Tools-#{version}-Darwin.pkg"
23   uninstall pkgutil: "com.Nordic Semiconductor.nRF-Command-Line-Tools.*"
25   # No zap stanza required
26 end