homebrew-cask/Casks/q/qgis@ltr.rb

30 lines
922 B
Ruby

cask "qgis@ltr" do
version "3.34.7,20240517_162727"
sha256 "5d178bafc9adb54ad3e9f8b1e46542ac8de8d2a983540c45711ebf6afba9342a"
url "https://qgis.org/downloads/macos/ltr/qgis_ltr_final-#{version.csv.first.dots_to_underscores}_#{version.csv.second}.dmg"
name "QGIS LTR"
desc "Geographic Information System"
homepage "https://www.qgis.org/"
livecheck do
url "https://download.qgis.org/downloads/macos/qgis-macos-ltr.sha256sum"
regex(/qgis_ltr_final[._-]v?(\d+(?:_\d+)+)[._-](\d+_\d+)\.dmg/i)
strategy :page_match do |page, regex|
page.scan(regex).map { |match| "#{match[0].tr("_", ".")},#{match[1]}" }
end
end
deprecate! date: "2025-05-01", because: :unsigned
depends_on macos: ">= :high_sierra"
app "QGIS-LTR.app"
zap trash: [
"~/Library/Application Support/QGIS",
"~/Library/Caches/QGIS",
"~/Library/Saved Application State/org.qgis.qgis*.savedState",
]
end