Update Homebrew formula generator to use new archive URL and adjust file paths for font installation. Add tap configuration for Genet Godzilla fonts.
This commit is contained in:
parent
b01b74c595
commit
8d5f0f3f90
2 changed files with 18 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
13
.fontfoldercleanup/tap_config.rb
Normal file
13
.fontfoldercleanup/tap_config.rb
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue