Add test font as submodule

This commit is contained in:
Matt Troutman 2025-04-04 21:59:26 -05:00
parent 9e255874f4
commit dd53c05988
No known key found for this signature in database
4 changed files with 33 additions and 0 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "fonts/test"]
path = fonts/test
url = http://clancy.genet-godzilla.ts.net:3002/fishy/homebrew-font-test.git

15
Formula/font-test.rb Normal file
View file

@ -0,0 +1,15 @@
class FontTest < Formula
desc "Test font"
homepage "http://clancy.genet-godzilla.ts.net:3002/fishy/homebrew-font-test"
url "http://clancy.genet-godzilla.ts.net:3002/fishy/homebrew-font-test/raw/branch/main/test.zip"
sha256 "b6de15290696645b8cb5a6a96f9124f0a87e65f85b23f7369f4e412c67306c59"
version "1.0.0"
def install
(share/"fonts").install Dir["*.zip"]
end
test do
assert_predicate share/"fonts/#test.#zip", :exist?
end
end

14
fonts/index.json Normal file
View file

@ -0,0 +1,14 @@
{
"fonts": [
{
"name": "buffalo",
"path": "fonts/buffalo",
"formula": "font-buffalo"
},
{
"name": "test",
"path": "fonts/test",
"formula": "font-test"
}
]
}

1
fonts/test Submodule

@ -0,0 +1 @@
Subproject commit 68f09e1435eaf27c7bad8e3c48ca3c3f2a1c662c