aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortinywrkb2021-07-26 17:38:01 +0300
committertinywrkb2021-07-26 17:38:01 +0300
commit2c07a1d551d4bc9ac620fac4c5ec228e49a847fb (patch)
treea002e3219c0dc038efdf84bb02b71e46686ed6e6
downloadaur-2c07a1d551d4bc9ac620fac4c5ec228e49a847fb.tar.gz
initial import
-rw-r--r--.SRCINFO55
-rw-r--r--70-noto-cjk.conf183
-rw-r--r--70-noto-hk.conf27
-rw-r--r--70-noto-jp.conf39
-rw-r--r--70-noto-kr.conf39
-rw-r--r--70-noto-sc.conf39
-rw-r--r--70-noto-tc.conf39
-rw-r--r--PKGBUILD188
8 files changed, 609 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..72d5fbbd9ced
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,55 @@
+pkgbase = noto-fonts-cjk-vf
+ pkgdesc = Google Noto CJK variable fonts
+ pkgver = 20210430
+ pkgrel = 1
+ url = https://www.google.com/get/noto/
+ arch = any
+ license = custom:SIL
+ provides = noto-fonts-cjk
+ conflicts = noto-fonts-cjk
+ source = noto-fonts-cjk-vf-20210430.tar.gz::https://github.com/googlefonts/noto-cjk/archive/cee7438f5f8e66397090d483c15275d1af3d87c7.tar.gz
+ source = 70-noto-cjk.conf
+ source = 70-noto-hk.conf
+ source = 70-noto-jp.conf
+ source = 70-noto-kr.conf
+ source = 70-noto-sc.conf
+ source = 70-noto-tc.conf
+ sha256sums = e0b2b7d6eca2a336cd66d2a63e7145a961fd442601341075115dbe299fa3ddb5
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = noto-fonts-cjk-vf
+
+pkgname = noto-fonts-cjk-hk-vf
+ pkgdesc = Google Noto CJK variable fonts - Traditional Chinese HK as default language (OpenType locl)
+
+pkgname = noto-fonts-cjk-jp-vf
+ pkgdesc = Google Noto CJK variable fonts - Japanese as default language (OpenType locl)
+
+pkgname = noto-fonts-cjk-kr-vf
+ pkgdesc = Google Noto CJK variable fonts - Korean as default language (OpenType locl)
+
+pkgname = noto-fonts-cjk-sc-vf
+ pkgdesc = Google Noto CJK variable fonts - Simplified Chinese as default language (OpenType locl)
+
+pkgname = noto-fonts-cjk-tc-vf
+ pkgdesc = Google Noto CJK variable fonts - Traditional Chinese as default language (OpenType locl)
+
+pkgname = noto-fonts-hk-vf
+ pkgdesc = Google Noto Traditional Chinese HK variable fonts
+
+pkgname = noto-fonts-jp-vf
+ pkgdesc = Google Noto Japanese variable fonts
+
+pkgname = noto-fonts-kr-vf
+ pkgdesc = Google Noto Korean variable fonts
+
+pkgname = noto-fonts-sc-vf
+ pkgdesc = Google Noto Simplified Chinese variable fonts
+
+pkgname = noto-fonts-tc-vf
+ pkgdesc = Google Noto Traditional Chinese variable fonts
diff --git a/70-noto-cjk.conf b/70-noto-cjk.conf
new file mode 100644
index 000000000000..b08cd64c043c
--- /dev/null
+++ b/70-noto-cjk.conf
@@ -0,0 +1,183 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <match target="pattern">
+ <test name="lang">
+ <string>ja</string>
+ </test>
+ <test name="family">
+ <string>serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Serif CJK JP</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>ko</string>
+ </test>
+ <test name="family">
+ <string>serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Serif CJK KR</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-cn</string>
+ </test>
+ <test name="family">
+ <string>serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Serif CJK SC</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-tw</string>
+ </test>
+ <test name="family">
+ <string>serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Serif CJK TC</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-hk</string>
+ </test>
+ <test name="family">
+ <string>serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Serif CJK HK</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>ja</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK JP</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>ko</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK KR</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-cn</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK SC</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-tw</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK TC</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-hk</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK HK</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>ja</string>
+ </test>
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans Mono CJK JP</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>ko</string>
+ </test>
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans Mono CJK KR</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-cn</string>
+ </test>
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans Mono CJK SC</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-tw</string>
+ </test>
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans Mono CJK TC</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-hk</string>
+ </test>
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans Mono CJK HK</string>
+ </edit>
+ </match>
+</fontconfig>
diff --git a/70-noto-hk.conf b/70-noto-hk.conf
new file mode 100644
index 000000000000..8f30da505889
--- /dev/null
+++ b/70-noto-hk.conf
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-hk</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK HK</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-hk</string>
+ </test>
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans Mono CJK HK</string>
+ </edit>
+ </match>
+</fontconfig>
diff --git a/70-noto-jp.conf b/70-noto-jp.conf
new file mode 100644
index 000000000000..d7410b0ff9f1
--- /dev/null
+++ b/70-noto-jp.conf
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <match target="pattern">
+ <test name="lang">
+ <string>ja</string>
+ </test>
+ <test name="family">
+ <string>serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Serif CJK JP</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>ja</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK JP</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>ja</string>
+ </test>
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans Mono CJK JP</string>
+ </edit>
+ </match>
+</fontconfig>
diff --git a/70-noto-kr.conf b/70-noto-kr.conf
new file mode 100644
index 000000000000..567e88d9a0fe
--- /dev/null
+++ b/70-noto-kr.conf
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <match target="pattern">
+ <test name="lang">
+ <string>ko</string>
+ </test>
+ <test name="family">
+ <string>serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Serif CJK KR</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>ko</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK KR</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>ko</string>
+ </test>
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans Mono CJK KR</string>
+ </edit>
+ </match>
+</fontconfig>
diff --git a/70-noto-sc.conf b/70-noto-sc.conf
new file mode 100644
index 000000000000..e643fc43f575
--- /dev/null
+++ b/70-noto-sc.conf
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-cn</string>
+ </test>
+ <test name="family">
+ <string>serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Serif CJK SC</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-cn</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK SC</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-cn</string>
+ </test>
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans Mono CJK SC</string>
+ </edit>
+ </match>
+</fontconfig>
diff --git a/70-noto-tc.conf b/70-noto-tc.conf
new file mode 100644
index 000000000000..8e2bdc3c49a9
--- /dev/null
+++ b/70-noto-tc.conf
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-tw</string>
+ </test>
+ <test name="family">
+ <string>serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Serif CJK TC</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-tw</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK TC</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="lang">
+ <string>zh-tw</string>
+ </test>
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans Mono CJK TC</string>
+ </edit>
+ </match>
+</fontconfig>
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..42c26fdfcbe2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,188 @@
+# Maintainer: tinywrkb <tinywrkb@gmail.com>
+# Contributor: Antonio Rojas <arojas@archlinux.org>
+
+pkgbase=noto-fonts-cjk-vf
+pkgname=(noto-fonts-{cjk,{cjk-,}{hk,jp,kr,sc,tc}}-vf)
+pkgver=20210430
+pkgrel=1
+pkgdesc='Google Noto CJK variable fonts'
+url='https://www.google.com/get/noto/'
+license=(custom:SIL)
+arch=(any)
+_commit=cee7438f5f8e66397090d483c15275d1af3d87c7
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/googlefonts/noto-cjk/archive/${_commit}.tar.gz"
+ 70-noto-{cjk,hk,jp,kr,sc,tc}.conf)
+sha256sums=('e0b2b7d6eca2a336cd66d2a63e7145a961fd442601341075115dbe299fa3ddb5'
+ 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
+conflicts=(noto-fonts-cjk)
+provides=(noto-fonts-cjk)
+
+_faces=(Black
+ Bold
+ ExtraLight
+ Light
+ Medium
+ Regular
+ SemiBold)
+
+_langs=(hk jp kr sc tc)
+
+package_noto-fonts-cjk-vf(){
+ cd noto-cjk-*/
+ for f in NotoSans{,Mono}CJK-VF.otf.ttc; do
+ install -Dm644 \
+ Sans/Variable/OTC/${f} \
+ "$pkgdir"/usr/share/fonts/noto-cjk/${f//-VF.otf}
+ done
+
+ for face in "${_faces[@]}"; do
+ install -Dm644 \
+ -t "$pkgdir"/usr/share/fonts/noto-cjk/ \
+ Serif/NotoSerifCJK-${face}.ttc
+ done
+
+ install -Dm644 -t "$pkgdir"/usr/share/fontconfig/conf.avail/ \
+ ../70-noto-cjk.conf
+ install -dm755 "$pkgdir"/usr/share/fontconfig/conf.default
+ ln -s -t "$pkgdir"/usr/share/fontconfig/conf.default/ \
+ ../conf.avail/70-noto-cjk.conf
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/${pkgname}/
+}
+
+_package_locl(){
+ conflicts+=(noto-fonts-cjk-vf)
+ provides+=(noto-fonts-cjk-vf)
+
+ cd noto-cjk-${_commit}
+
+ install -Dm644 \
+ Sans/Variable/OTF/NotoSansCJK${_lang}-VF.otf \
+ "$pkgdir"/usr/share/fonts/noto-cjk/NotoSansCJK.otf
+
+ install -Dm644 \
+ Sans/Variable/OTF/Mono/NotoSansMonoCJK${_lang}-VF.otf \
+ "$pkgdir"/usr/share/fonts/noto-cjk/NotoSansMonoCJK.otf
+
+ # no serif for hk so install the tc instead as the packages conflict
+ [ $_lang = hk ] && _lang=tc
+ for face in "${_faces[@]}"; do
+ install -Dm644 \
+ Serif/NotoSerifCJK${_lang}-${face}.otf \
+ "$pkgdir"/usr/share/fonts/noto-cjk/NotoSerifCJK-${face}.otf
+ done
+
+ install -Dm644 -t "$pkgdir"/usr/share/fontconfig/conf.avail/ \
+ ../70-noto-cjk.conf
+ install -dm755 "$pkgdir"/usr/share/fontconfig/conf.default
+ ln -s -t "$pkgdir"/usr/share/fontconfig/conf.default/ \
+ ../conf.avail/70-noto-cjk.conf
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/${pkgname}/
+}
+
+_package_subset(){
+ cd noto-cjk-${_commit}
+
+ # install sans font
+ install -Dm644 \
+ Sans/Variable/OTF/Subset/NotoSans${_lang^^}-VF.otf \
+ "$pkgdir"/usr/share/fonts/noto-cjk/NotoSans${_lang^^}.otf
+
+ # install mono font
+ # there are no subset mono fonts, so install the multi-lingual with default locl, and then conflict
+ for i in ${_langs[@]}; do
+ [ $i = $_lang ] && continue
+ conflicts+=(noto-fonts-cjk-${i}-vf)
+ done
+ install -Dm644 \
+ Sans/Variable/OTF/Mono/NotoSansMonoCJK${_lang}-VF.otf \
+ "$pkgdir"/usr/share/fonts/noto-cjk/NotoSansMonoCJK.otf
+
+ # install serif font
+ if [ ${_lang} != 'hk' ]; then
+ for face in "${_faces[@]}"; do
+ install -Dm644 \
+ -t "$pkgdir"/usr/share/fonts/noto-cjk/ \
+ Serif/NotoSerif${_lang^^}-${face}.otf
+ done
+ fi
+
+ install -Dm644 -t "$pkgdir"/usr/share/fontconfig/conf.avail/ \
+ ../70-noto-${_lang}.conf
+ install -dm755 "$pkgdir"/usr/share/fontconfig/conf.default
+ ln -s -t "$pkgdir"/usr/share/fontconfig/conf.default/ \
+ ../conf.avail/70-noto-${_lang}.conf
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/${pkgname}/
+}
+
+package_noto-fonts-cjk-hk-vf(){
+ pkgdesc+=' - Traditional Chinese HK as default language (OpenType locl)'
+
+ _lang=hk
+ _package_locl
+}
+
+package_noto-fonts-cjk-jp-vf(){
+ pkgdesc+=' - Japanese as default language (OpenType locl)'
+
+ _lang=jp
+ _package_locl
+}
+
+package_noto-fonts-cjk-kr-vf(){
+ pkgdesc+=' - Korean as default language (OpenType locl)'
+
+ _lang=kr
+ _package_locl
+}
+
+package_noto-fonts-cjk-sc-vf(){
+ pkgdesc+=' - Simplified Chinese as default language (OpenType locl)'
+
+ _lang=sc
+ _package_locl
+}
+
+package_noto-fonts-cjk-tc-vf(){
+ pkgdesc+=' - Traditional Chinese as default language (OpenType locl)'
+
+ _lang=tc
+ _package_locl
+}
+
+package_noto-fonts-hk-vf(){
+ pkgdesc='Google Noto Traditional Chinese HK variable fonts'
+
+ _lang=hk
+ _package_subset
+}
+
+package_noto-fonts-jp-vf(){
+ pkgdesc='Google Noto Japanese variable fonts'
+
+ _lang=jp
+ _package_subset
+}
+
+package_noto-fonts-kr-vf(){
+ pkgdesc='Google Noto Korean variable fonts'
+
+ _lang=kr
+ _package_subset
+}
+
+package_noto-fonts-sc-vf(){
+ pkgdesc='Google Noto Simplified Chinese variable fonts'
+
+ _lang=sc
+ _package_subset
+}
+
+package_noto-fonts-tc-vf(){
+ pkgdesc='Google Noto Traditional Chinese variable fonts'
+
+ _lang=tc
+ _package_subset
+}