28 lines
808 B
Ruby
28 lines
808 B
Ruby
cask "qgis" do
|
|
version "3.32.1,20230721_142054"
|
|
sha256 "17522a884f06f767bf44503c20e00dc7b486afbd74835fc9ac12f96c3cb5f023"
|
|
|
|
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
|