homebrew-cask/Casks/q/qgis.rb

28 lines
808 B
Ruby

cask "qgis" do
version "3.32.2,20230819_135339"
sha256 "240f557b0be1abb34f5ab09a0b51678f7a5b435fc7c7cb59bbde3cfd8700174a"
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://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