homebrew-cask/Casks/smartgit.rb

33 lines
1.0 KiB
Ruby

cask "smartgit" do
arch arm: "aarch64", intel: "x86_64"
version "22.1.4"
sha256 arm: "f921ea2049abbcbc5834dad1e3fd7285a3f34b3aba95a02f0a425ef848d2fa01",
intel: "2522cd123af57ce9e6b752de357df43c3321792dce45e0c84e1b5f56ab985ee4"
url "https://www.syntevo.com/downloads/smartgit/smartgit-#{arch}-#{version.dots_to_underscores}.dmg"
on_sierra :or_older do
version "20.2.6"
sha256 "af5fbf8db26edde3d996d99c6e82287332598359fe63ff2cd97c712a1685a2ea"
url "https://www.syntevo.com/downloads/smartgit/smartgit-macosx-#{version.dots_to_underscores}.dmg"
end
name "SmartGit"
desc "Git client"
homepage "https://www.syntevo.com/smartgit/"
livecheck do
url "https://www.syntevo.com/smartgit/download/"
regex(/href=.*?smartgit[._-]#{arch}[._-]v?(\d+(?:[._]\d+)+)\.dmg/i)
strategy :page_match do |page, regex|
page.scan(regex)
.map { |match| match[0].tr("_", ".") }
end
end
app "SmartGit.app"
binary "#{appdir}/SmartGit.app/Contents/MacOS/SmartGit"
end