diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0f67d17 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "fonts/test"] + path = fonts/test + url = http://clancy.genet-godzilla.ts.net:3002/fishy/homebrew-font-test.git diff --git a/Formula/font-test.rb b/Formula/font-test.rb new file mode 100644 index 0000000..ba10c7e --- /dev/null +++ b/Formula/font-test.rb @@ -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 diff --git a/fonts/index.json b/fonts/index.json new file mode 100644 index 0000000..517c7d7 --- /dev/null +++ b/fonts/index.json @@ -0,0 +1,14 @@ +{ + "fonts": [ + { + "name": "buffalo", + "path": "fonts/buffalo", + "formula": "font-buffalo" + }, + { + "name": "test", + "path": "fonts/test", + "formula": "font-test" + } + ] +} \ No newline at end of file diff --git a/fonts/test b/fonts/test new file mode 160000 index 0000000..68f09e1 --- /dev/null +++ b/fonts/test @@ -0,0 +1 @@ +Subproject commit 68f09e1435eaf27c7bad8e3c48ca3c3f2a1c662c