27 lines
1.1 KiB
Ruby
27 lines
1.1 KiB
Ruby
|
cask "nordic-nrf-command-line-tools" do
|
||
|
version "10.23.0"
|
||
|
sha256 "14da4506c8626b8b7bd43ebed3b31f0f4b496ab5d6d25e82fbaa398cdfcc3d91"
|
||
|
|
||
|
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",
|
||
|
verified: "nsscprodmedia.blob.core.windows.net/"
|
||
|
name "nRF Command Line Tools"
|
||
|
desc "Command-line tools for Nordic nRF Semiconductors"
|
||
|
homepage "https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools"
|
||
|
|
||
|
livecheck do
|
||
|
url "https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools/Download"
|
||
|
regex(/nRF[._-]Command[._-]Line[._-]Tools[._-]v?(\d+(?:[._]\d+)+)[._-]Darwin\.dmg/i)
|
||
|
strategy :page_match do |page, regex|
|
||
|
page.scan(regex).map { |match| match[0].tr("_", ".") }
|
||
|
end
|
||
|
end
|
||
|
|
||
|
depends_on cask: "segger-jlink"
|
||
|
|
||
|
pkg ".nRF-Command-Line-Tools-#{version}-Darwin.pkg"
|
||
|
|
||
|
uninstall pkgutil: "com.Nordic Semiconductor.nRF-Command-Line-Tools.*"
|
||
|
|
||
|
# No zap stanza required
|
||
|
end
|