excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / sauerbraten.rb
blobbb960f664aff02cd46f4b1e4c60593a882ff1ee6
1 cask "sauerbraten" do
2   version "2020.11.29,2020.12.21"
3   sha256 "a7e26c85ff15be88b9ced26e64c2fa0e68bde1325c146763833abac591898bcb"
5   url "https://downloads.sourceforge.net/sauerbraten/sauerbraten/#{version.csv.first.dots_to_underscores}/sauerbraten_#{version.csv.second.dots_to_underscores}_macos.dmg",
6       verified: "sourceforge.net/sauerbraten/"
7   name "Cube 2: Sauerbraten"
8   desc "Multiplayer & singleplayer first person shooter"
9   homepage "http://sauerbraten.org/"
11   livecheck do
12     url :homepage
13     regex(%r{(\d+(?:_\d+)*)/sauerbraten[._-]?v?(\d+(?:_\d+)*)[._-]?macos\.dmg}i)
14     strategy :page_match do |page, regex|
15       page.scan(regex).map { |match| "#{match[0].tr("_", ".")},#{match[1].tr("_", ".")}" }
16     end
17   end
19   app "Sauerbraten.app"
21   caveats do
22     requires_rosetta
23   end
24 end