homebrew-cask/Casks/q/qgis.rb

28 lines
817 B
Ruby

cask "qgis" do
version "3.36.3,20240517_122510"
sha256 "5f356ed5a87297185fd30ec40bb9cc4d0cb22892c4ccd2f1052fc63d50f99708"
url "https://qgis.org/downloads/macos/pr/qgis_pr_final-#{version.csv.first.dots_to_underscores}_#{version.csv.second}.dmg"
name "QGIS"
desc "Geographic Information System"
homepage "https://www.qgis.org/"
livecheck do
url "https://download.qgis.org/downloads/macos/qgis-macos-pr.sha256sum"
strategy :page_match do |page|
match = page.match(/qgis_pr_final[._-]v?(\d+(?:_\d+)+)[._-](\d+_\d+)\.dmg/i)
next if match.blank?
"#{match[1].tr("_", ".")},#{match[2]}"
end
end
app "QGIS.app"
zap trash: [
"~/Library/Application Support/QGIS",
"~/Library/Caches/QGIS",
"~/Library/Saved Application State/org.qgis.qgis*.savedState",
]
end