Files
2023-11-28 04:59:33 -05:00

26 lines
881 B
Ruby

cask "p4" do
version "2023.2,2523307"
sha256 "fadae9b0a13e783a64f22755d234d7a66d370a73173fcf91c8474725de4df599"
url "https://filehost.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"
regex(%r{\((\d+(?:\.\d+)+)/(\d+)\)}i)
strategy :page_match do |page, regex|
page.scan(regex).map { |match| "#{match[0]},#{match[1]}" }
end
end
conflicts_with cask: "perforce"
depends_on macos: ">= :high_sierra"
container type: :naked
binary "bin.macosx1015x86_64", target: "p4"
# No zap stanza required
end