diff options
Diffstat (limited to 'pkg/adobe-source-fonts')
| -rw-r--r-- | pkg/adobe-source-fonts/gen.lua | 50 | ||||
| -rw-r--r-- | pkg/adobe-source-fonts/gen.rc | 46 |
2 files changed, 50 insertions, 46 deletions
diff --git a/pkg/adobe-source-fonts/gen.lua b/pkg/adobe-source-fonts/gen.lua new file mode 100644 index 00000000..f449d399 --- /dev/null +++ b/pkg/adobe-source-fonts/gen.lua @@ -0,0 +1,50 @@ +local function font(name, styles) + for _, style in ipairs(styles) do + local path = string.format('share/fonts/%s/%s.otf', name, style) + local src = string.format('$srcdir/OTF/%s.otf', style) + file(path, '644', src) + end +end + +font('source-code-pro', { + 'SourceCodePro-Black', + 'SourceCodePro-BlackIt', + 'SourceCodePro-Bold', + 'SourceCodePro-BoldIt', + 'SourceCodePro-ExtraLight', + 'SourceCodePro-ExtraLightIt', + 'SourceCodePro-It', + 'SourceCodePro-Light', + 'SourceCodePro-LightIt', + 'SourceCodePro-Medium', + 'SourceCodePro-MediumIt', + 'SourceCodePro-Regular', + 'SourceCodePro-Semibold', + 'SourceCodePro-SemiboldIt', +}) + +font('source-sans-pro', { + 'SourceSansPro-Black', + 'SourceSansPro-BlackIt', + 'SourceSansPro-Bold', + 'SourceSansPro-BoldIt', + 'SourceSansPro-ExtraLight', + 'SourceSansPro-ExtraLightIt', + 'SourceSansPro-It', + 'SourceSansPro-Light', + 'SourceSansPro-LightIt', + 'SourceSansPro-Regular', + 'SourceSansPro-Semibold', + 'SourceSansPro-SemiboldIt', +}) + +font('source-serif-pro', { + 'SourceSerifPro-Black', + 'SourceSerifPro-Bold', + 'SourceSerifPro-ExtraLight', + 'SourceSerifPro-Light', + 'SourceSerifPro-Regular', + 'SourceSerifPro-Semibold', +}) + +fetch 'curl' diff --git a/pkg/adobe-source-fonts/gen.rc b/pkg/adobe-source-fonts/gen.rc deleted file mode 100644 index 7cd74de0..00000000 --- a/pkg/adobe-source-fonts/gen.rc +++ /dev/null @@ -1,46 +0,0 @@ -fn fonts { - fontdir=$1 - shift - for(font) - file share/fonts/$fontdir/$font.otf '$srcdir'/OTF/$font.otf 644 -} - -fonts source-code-pro\ - SourceCodePro-Black\ - SourceCodePro-BlackIt\ - SourceCodePro-Bold\ - SourceCodePro-BoldIt\ - SourceCodePro-ExtraLight\ - SourceCodePro-ExtraLightIt\ - SourceCodePro-It\ - SourceCodePro-Light\ - SourceCodePro-LightIt\ - SourceCodePro-Medium\ - SourceCodePro-MediumIt\ - SourceCodePro-Regular\ - SourceCodePro-Semibold\ - SourceCodePro-SemiboldIt - -fonts source-sans-pro\ - SourceSansPro-Black\ - SourceSansPro-BlackIt\ - SourceSansPro-Bold\ - SourceSansPro-BoldIt\ - SourceSansPro-ExtraLight\ - SourceSansPro-ExtraLightIt\ - SourceSansPro-It\ - SourceSansPro-Light\ - SourceSansPro-LightIt\ - SourceSansPro-Regular\ - SourceSansPro-Semibold\ - SourceSansPro-SemiboldIt - -fonts source-serif-pro\ - SourceSerifPro-Black\ - SourceSerifPro-Bold\ - SourceSerifPro-ExtraLight\ - SourceSerifPro-Light\ - SourceSerifPro-Regular\ - SourceSerifPro-Semibold - -fetch curl |
