excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / font / font-a / font-anka-coder.rb
blobd7387664346216d20af3b86c0ee5264ef149db61
1 cask "font-anka-coder" do
2   version "1.100"
3   sha256 "3c3cd48ed57796cd490a2c22614c73e32ad202790d10e9af3d632cd985c0e172"
5   url "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/anka-coder-fonts/AnkaCoder.#{version}.zip",
6       verified: "storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/anka-coder-fonts/"
7   name "Anka/Coder"
8   homepage "https://code.google.com/p/anka-coder-fonts/"
10   livecheck do
11     url "https://storage.googleapis.com/storage/v1/b/google-code-archive/o/v2%2Fcode.google.com%2Fanka-coder-fonts%2Fdownloads-page-1.json?alt=media"
12     regex(/^AnkaCoder[._-]v?(\d+(?:\.\d+)+)\.zip$/i)
13     strategy :json do |json, regex|
14       json["downloads"]&.map do |item|
15         match = item["filename"]&.match(regex)
16         next if match.blank?
18         match[1]
19       end
20     end
21   end
23   font "AnkaCoder-b.ttf"
24   font "AnkaCoder-bi.ttf"
25   font "AnkaCoder-i.ttf"
26   font "AnkaCoder-r.ttf"
28   # No zap stanza required
29 end