excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / squeak.rb
blobbcbd494f750bedfaa13891aadaa951ed0397e0e2
1 cask "squeak" do
2   version "6.0,22148"
3   sha256 "a1902d43ba77a0fc02ea31b38d9a290bacb08a82a5933a296c4c586657918bce"
5   url "https://files.squeak.org/#{version.csv.first}/Squeak#{version.csv.first}-#{version.csv.second}-64bit/Squeak#{version.csv.first}-#{version.csv.second}-64bit-All-in-One.zip"
6   name "Squeak"
7   desc "Smalltalk programming system"
8   homepage "https://squeak.org/"
10   livecheck do
11     url "https://squeak.org/downloads/"
12     regex(%r{href=.*?/Squeak(\d+(?:\.\d+)*)-(\d+)-64bit-All-in-One\.zip}i)
13     strategy :page_match do |page, regex|
14       page.scan(regex).map { |match| "#{match[0]},#{match[1]}" }
15     end
16   end
18   app "Squeak#{version.csv.first}-#{version.csv.second}-64bit-All-in-One.app"
20   zap trash: "~/Library/Saved Application State/org.squeak.Squeak#{version.csv.first}.64.All-in-One.savedState"
21 end