From b84374175f1a7c037b48bb916fea8d5239cbd8b4 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Thu, 8 Aug 2024 05:40:20 -0400 Subject: [PATCH] New package: noto-fonts-cjk-serif-2.003 split from noto-fonts-cjk, add variable fonts --- srcpkgs/noto-fonts-cjk-serif-variable | 1 + .../files/70-noto-fonts-cjk-serif.conf | 64 +++++++++++++++++++ srcpkgs/noto-fonts-cjk-serif/template | 40 ++++++++++++ srcpkgs/noto-fonts-cjk-serif/update | 1 + 4 files changed, 106 insertions(+) create mode 120000 srcpkgs/noto-fonts-cjk-serif-variable create mode 100644 srcpkgs/noto-fonts-cjk-serif/files/70-noto-fonts-cjk-serif.conf create mode 100644 srcpkgs/noto-fonts-cjk-serif/template create mode 100644 srcpkgs/noto-fonts-cjk-serif/update diff --git a/srcpkgs/noto-fonts-cjk-serif-variable b/srcpkgs/noto-fonts-cjk-serif-variable new file mode 120000 index 00000000000..14b79937a4b --- /dev/null +++ b/srcpkgs/noto-fonts-cjk-serif-variable @@ -0,0 +1 @@ +noto-fonts-cjk-serif \ No newline at end of file diff --git a/srcpkgs/noto-fonts-cjk-serif/files/70-noto-fonts-cjk-serif.conf b/srcpkgs/noto-fonts-cjk-serif/files/70-noto-fonts-cjk-serif.conf new file mode 100644 index 00000000000..20d0dbc1a77 --- /dev/null +++ b/srcpkgs/noto-fonts-cjk-serif/files/70-noto-fonts-cjk-serif.conf @@ -0,0 +1,64 @@ + + + + Properly match Noto CJK font languages + + + ja + + + serif + + + Noto Serif CJK JP + + + + + + ko + + + serif + + + Noto Serif CJK KR + + + + + + zh-cn + + + serif + + + Noto Serif CJK SC + + + + + + zh-tw + + + serif + + + Noto Serif CJK TC + + + + + + zh-hk + + + serif + + + Noto Serif CJK HK + + + diff --git a/srcpkgs/noto-fonts-cjk-serif/template b/srcpkgs/noto-fonts-cjk-serif/template new file mode 100644 index 00000000000..740af4221a6 --- /dev/null +++ b/srcpkgs/noto-fonts-cjk-serif/template @@ -0,0 +1,40 @@ +# Template file for 'noto-fonts-cjk-serif' +pkgname=noto-fonts-cjk-serif +version=2.003 +revision=1 +depends="font-util" +short_desc="Google Noto CJK Fonts - serif fonts" +maintainer="classabbyamp " +license="OFL-1.1" +homepage="https://github.com/notofonts/noto-cjk" +changelog="https://raw.githubusercontent.com/notofonts/noto-cjk/main/Serif/NEWS.md" +distfiles="https://github.com/notofonts/noto-cjk/releases/download/Serif${version}/02_NotoSerifCJK-OTF-VF.zip + https://github.com/notofonts/noto-cjk/releases/download/Serif${version}/04_NotoSerifCJKOTC.zip" +checksum="7898cfb54156cc0d8a2f2c00d5645c573ff367d03d29085bb495966d99d2529e + c76ed8fd491ce98182ec6430238b90a1eabea8857c7db64e9037efa38e198a31" +font_dirs="/usr/share/fonts/noto" + +do_install() { + vmkdir usr/share/fonts/noto + vcopy "OTC/*.ttc" usr/share/fonts/noto + vcopy "Variable/OTC/*.ttc" usr/share/fonts/noto + vinstall ${FILESDIR}/70-noto-fonts-cjk-serif.conf 644 usr/share/fontconfig/conf.avail + vinstall ${FILESDIR}/70-noto-fonts-cjk-serif.conf 644 usr/share/fontconfig/conf.avail \ + 70-noto-fonts-cjk-serif-variable.conf + vmkdir etc/fonts/conf.d + ln -sf ../../../usr/share/fontconfig/conf.avail/70-noto-fonts-cjk-serif.conf ${DESTDIR}/etc/fonts/conf.d/ + vlicense LICENSE +} + +noto-fonts-cjk-serif-variable_package() { + short_desc="${short_desc/ - /& variable weight}" + depends="font-util" + pkg_install() { + vmove 'usr/share/fonts/noto/*VF*.ttc' + vmove usr/share/fontconfig/conf.avail/70-noto-fonts-cjk-serif-variable.conf + vmkdir etc/fonts/conf.d + ln -sf ../../../usr/share/fontconfig/conf.avail/70-noto-fonts-cjk-serif-variable.conf \ + ${PKGDESTDIR}/etc/fonts/conf.d/ + vlicense LICENSE + } +} diff --git a/srcpkgs/noto-fonts-cjk-serif/update b/srcpkgs/noto-fonts-cjk-serif/update new file mode 100644 index 00000000000..0519713b8a0 --- /dev/null +++ b/srcpkgs/noto-fonts-cjk-serif/update @@ -0,0 +1 @@ +pattern='/archive/refs/tags/Serif\K[\d.]+(?=\.tar\.gz")'