Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / mplab-xc8.rb
blob25a013132bedff5478b446da6fd51d536ee932c2
1 cask "mplab-xc8" do
2   version "2.50"
3   sha256 "1bfa239afc1c690cc4be1e58b280e2d55ef9d0fbace1e74a256677869225420b"
5   url "https://ww1.microchip.com/downloads/aemDocuments/documents/DEV/ProductDocuments/SoftwareTools/xc8-v#{version}-full-install-macos-x64-installer.dmg"
6   name "MPLab XC8 Compiler"
7   desc "Compiler for 8-bit PIC and SAM MCUs and MPUs"
8   homepage "https://www.microchip.com/mplab/compilers"
10   livecheck do
11     url "https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc8"
12     regex(%r{href=.*?ProductDocuments/SoftwareTools/xc8[._-]v?(\d+(?:\.\d+)+)-full-install-macos-x64-installer\.dmg}i)
13   end
15   installer script: {
16     executable: "xc8-v#{version}-full-install-macos-x64-installer.app/Contents/MacOS/installbuilder.sh",
17     args:       [
18       "--mode", "unattended",
19       "--unattendedmodeui", "none",
20       "--ModifyAll", "0",
21       "--netservername", '""',
22       "--LicenseType", "WorkstationMode",
23       "--prefix", staged_path.to_s
24     ],
25     input:      ["y"],
26     sudo:       true,
27   }
28   binary "#{staged_path}/bin/xc-ccov"
29   binary "#{staged_path}/bin/xc8"
30   binary "#{staged_path}/bin/xc8-ar"
31   binary "#{staged_path}/bin/xc8-cc"
32   binary "#{staged_path}/bin/xclm"
34   postflight do
35     set_ownership staged_path.to_s
36   end
38   uninstall script: {
39     executable: "Uninstall-xc8-v#{version}.app/Contents/MacOS/installbuilder.sh",
40     args:       ["--mode", "unattended"],
41     sudo:       true,
42   }
44   # No zap stanza required
45 end