1 cask "font-anka-coder" do
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/"
8 homepage "https://code.google.com/p/anka-coder-fonts/"
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)
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