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/"
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("_", ".")}" }