homebrew-cask/Casks/p4.rb

25 lines
844 B
Ruby

cask "p4" do
version "2021.2,2201121"
sha256 "98374ca632e8e9d7df5e1d9a3aef78500c0a21ef910e49ba38cb0659fe4503d3"
url "https://cdist2.perforce.com/perforce/r#{version.major[-2..]}.#{version.minor}/bin.macosx1015x86_64/p4"
name "Perforce Helix Command-Line Client (P4)"
desc "Use it to gain instant access to operations and complete control over the system"
homepage "https://www.perforce.com/products/helix-core-apps/command-line-client"
livecheck do
url "https://www.perforce.com/perforce/doc.current/user/relnotes.txt"
strategy :page_match do |page|
page.scan(%r{\((\d+(?:\.\d+)+)/(\d+)\)}i).map do |match|
"#{match[0]},#{match[1]}"
end
end
end
conflicts_with cask: "perforce"
depends_on macos: ">= :high_sierra"
container type: :naked
binary "bin.macosx1015x86_64", target: "p4"
end