diff --git a/.fontfoldercleanup/create_homebrew_formula.py b/.fontfoldercleanup/create_homebrew_formula.py index 4a471db..07dbc75 100755 --- a/.fontfoldercleanup/create_homebrew_formula.py +++ b/.fontfoldercleanup/create_homebrew_formula.py @@ -19,7 +19,7 @@ class HomebrewFormulaGenerator: class Font{formula_name.capitalize()} < Formula desc "Font: {formula_name}" homepage "http://clancy.genet-godzilla.ts.net:3002/Fonts/homebrew-fonts" - url "http://clancy.genet-godzilla.ts.net:3002/Fonts/homebrew-fonts/raw/main/font_files/{font_name}" + url "http://clancy.genet-godzilla.ts.net:3002/Fonts/homebrew-fonts/-/archive/main/homebrew-fonts-main.tar.gz" version "1.0.0" sha256 "" # This will need to be filled in after the first build @@ -31,23 +31,23 @@ class Font{formula_name.capitalize()} < Formula (share/"fonts/webfonts").mkpath # Install TTF fonts - Dir.glob("ttf/*.ttf").each do |font| + Dir.glob("homebrew-fonts-main/font_files/{font_name}/ttf/*.ttf").each do |font| system "cp", font, share/"fonts/truetype" end # Install OTF fonts - Dir.glob("otf/*.otf").each do |font| + Dir.glob("homebrew-fonts-main/font_files/{font_name}/otf/*.otf").each do |font| system "cp", font, share/"fonts/opentype" end # Install web fonts - Dir.glob("web/*.{{woff,woff2,eot,svg}}").each do |font| + Dir.glob("homebrew-fonts-main/font_files/{font_name}/web/*.{{woff,woff2,eot,svg}}").each do |font| system "cp", font, share/"fonts/webfonts" end # Install documentation and other files (share/"{formula_name}").mkpath - Dir.glob("other_files/*").each do |file| + Dir.glob("homebrew-fonts-main/font_files/{font_name}/other_files/*").each do |file| system "cp", "-r", file, share/"{formula_name}" end end diff --git a/.fontfoldercleanup/tap_config.rb b/.fontfoldercleanup/tap_config.rb new file mode 100644 index 0000000..938083e --- /dev/null +++ b/.fontfoldercleanup/tap_config.rb @@ -0,0 +1,13 @@ +# Tap configuration for genet-godzilla/fonts +class GenetGodzillaFonts < Formula + desc "Font collection from Genet Godzilla" + homepage "http://clancy.genet-godzilla.ts.net:3002/Fonts/homebrew-fonts" + url "http://clancy.genet-godzilla.ts.net:3002/Fonts/homebrew-fonts/-/archive/main/homebrew-fonts-main.tar.gz" + version "1.0.0" + sha256 "" # This will need to be filled in after the first build + + def install + # This is a meta-formula that doesn't install anything + # It's used to set up the tap configuration + end +end \ No newline at end of file