homebrew-cask/Casks/p4.rb

25 lines
844 B
Ruby

cask "p4" do
version "2022.2,2407422"
sha256 "8f98a15ae2e3dbacc10e7ae8f8fdb253e3d5d3579c1dac004cf7deecc6d4362a"
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