excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / swiftpm-catalog.rb
blobf03ab2f3cd4ebdf9827f7d99f03b2b24d9363693
1 cask "swiftpm-catalog" do
2   version "1.2.2,1238"
3   sha256 "f006f055b6eb620b0d9b5c882f9930450990fb43677f6915487818ec8bc6ee4f"
5   url "https://zeezide.com/en/products/swiftpmcatalog/archives/SwiftPM%20Catalog.app-#{version.csv.first}-v#{version.csv.second}.zip"
6   name "SwiftPM Catalog"
7   desc "Browse and search for Swift Package Manager packages"
8   homepage "https://zeezide.com/en/products/swiftpmcatalog/"
10   livecheck do
11     url :homepage
12     regex(%r{href=.*?/SwiftPM\s*Catalog\.app[._-](\d+(?:\.\d+)+)[_-]v?(\d+)\.zip}i)
13     strategy :page_match do |page, regex|
14       page.scan(regex).map { |match| "#{match[0]},#{match[1]}" }
15     end
16   end
18   depends_on macos: ">= :mojave"
20   app "SwiftPM Catalog.app"
22   zap trash: [
23     "~/Library/Caches/SwiftPM Catalog",
24     "~/Library/HTTPStorages/de.zeezide.swift.SwiftPMCatalog",
25     "~/Library/org.swift.swiftpm",
26     "~/Library/Preferences/de.zeezide.swift.SwiftPMCatalog.plist",
27     "~/Library/Saved Application State/de.zeezide.swift.SwiftPMCatalog.savedState",
28   ]
29 end