aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortinywrkb2022-01-27 05:28:07 +0200
committertinywrkb2022-01-27 05:28:07 +0200
commite8d6dd8380f06d15737bea145efad1783846c89b (patch)
treea019be9c3a01b07f8d0243bd04269989ca61fbc5
parent2c07a1d551d4bc9ac620fac4c5ec228e49a847fb (diff)
downloadaur-e8d6dd8380f06d15737bea145efad1783846c89b.tar.gz
bump to 20220121-1
-rw-r--r--.SRCINFO18
-rw-r--r--70-noto-hk.conf12
-rw-r--r--PKGBUILD97
3 files changed, 63 insertions, 64 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 72d5fbbd9ced..e967dd4da4d5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,26 +1,26 @@
pkgbase = noto-fonts-cjk-vf
pkgdesc = Google Noto CJK variable fonts
- pkgver = 20210430
+ pkgver = 20220121
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 = noto-cjk-20220121.tar.gz::https://github.com/googlefonts/noto-cjk/archive/70dc26931fcfbed08afc8f683af108ee3027ad54.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
+ sha256sums = 3e03522d5ee8ac0d8125eda48785c7afabbad81e20afb2e9da4403f00418535c
+ sha256sums = 357e9ed6553087567ec5a28f835db5c43d3cd68a688e4677f759cca465379a32
+ sha256sums = 70f5ad3bd3e3d90c98c6a9ea2f3a28c2564fe18f0d7b8d78926a284cec398fd0
+ sha256sums = 0b5bd14a869234e50b735505e96257cd8e0851031a02735353895b7408abd313
+ sha256sums = 233846410004447b718545aa83a5375400d5e3a0219e79ff0ab50a430aec765b
+ sha256sums = 099e5f2fff526d0d38d57ce5aa0ebd92e0886aaa937f77812f85d63d3e01e53c
+ sha256sums = 42d6a448bae63daba8eb6123a7b5e56683536f82709ed448a0b29c12bdf18e02
pkgname = noto-fonts-cjk-vf
diff --git a/70-noto-hk.conf b/70-noto-hk.conf
index 8f30da505889..dec698e2b01a 100644
--- a/70-noto-hk.conf
+++ b/70-noto-hk.conf
@@ -6,6 +6,18 @@
<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>zh-hk</string>
+ </test>
+ <test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
diff --git a/PKGBUILD b/PKGBUILD
index 42c26fdfcbe2..fe1842e7ce39 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,42 +3,40 @@
pkgbase=noto-fonts-cjk-vf
pkgname=(noto-fonts-{cjk,{cjk-,}{hk,jp,kr,sc,tc}}-vf)
-pkgver=20210430
+pkgver=20220121
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)
+_commit=70dc26931fcfbed08afc8f683af108ee3027ad54
+source=("noto-cjk-${pkgver}.tar.gz::https://github.com/googlefonts/noto-cjk/archive/${_commit}.tar.gz"
+ 70-noto-{cjk,hk,jp,kr,sc,tc}.conf)
+sha256sums=('3e03522d5ee8ac0d8125eda48785c7afabbad81e20afb2e9da4403f00418535c'
+ '357e9ed6553087567ec5a28f835db5c43d3cd68a688e4677f759cca465379a32'
+ '70f5ad3bd3e3d90c98c6a9ea2f3a28c2564fe18f0d7b8d78926a284cec398fd0'
+ '0b5bd14a869234e50b735505e96257cd8e0851031a02735353895b7408abd313'
+ '233846410004447b718545aa83a5375400d5e3a0219e79ff0ab50a430aec765b'
+ '099e5f2fff526d0d38d57ce5aa0ebd92e0886aaa937f77812f85d63d3e01e53c'
+ '42d6a448bae63daba8eb6123a7b5e56683536f82709ed448a0b29c12bdf18e02')
_langs=(hk jp kr sc tc)
package_noto-fonts-cjk-vf(){
- cd noto-cjk-*/
- for f in NotoSans{,Mono}CJK-VF.otf.ttc; do
+ cd noto-cjk-${_commit}
+
+ for _font in Sans Serif; do
install -Dm644 \
- Sans/Variable/OTC/${f} \
- "$pkgdir"/usr/share/fonts/noto-cjk/${f//-VF.otf}
- done
+ ${_font}/Variable/OTC/Noto${_font}CJK-VF.otf.ttc \
+ "$pkgdir"/usr/share/fonts/noto-cjk/Noto${_font}CJK.ttc
- for face in "${_faces[@]}"; do
+ # mono is available only for sans
+ [ "${_font}" = "Sans" ] || continue
install -Dm644 \
- -t "$pkgdir"/usr/share/fonts/noto-cjk/ \
- Serif/NotoSerifCJK-${face}.ttc
+ ${_font}/Variable/OTC/Noto${_font}MonoCJK-VF.otf.ttc \
+ "$pkgdir"/usr/share/fonts/noto-cjk/Noto${_font}MonoCJKCJK.ttc
done
install -Dm644 -t "$pkgdir"/usr/share/fontconfig/conf.avail/ \
@@ -56,20 +54,16 @@ _package_locl(){
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
+ for _font in Sans Serif; do
+ install -Dm644 \
+ ${_font}/Variable/OTF/Noto${_font}CJK${_lang}-VF.otf \
+ "$pkgdir"/usr/share/fonts/noto-cjk/Noto${_font}CJK.otf
- # no serif for hk so install the tc instead as the packages conflict
- [ $_lang = hk ] && _lang=tc
- for face in "${_faces[@]}"; do
+ # mono is available only for sans
+ [ "${_font}" = "Sans" ] || continue
install -Dm644 \
- Serif/NotoSerifCJK${_lang}-${face}.otf \
- "$pkgdir"/usr/share/fonts/noto-cjk/NotoSerifCJK-${face}.otf
+ ${_font}/Variable/OTF/Mono/Noto${_font}MonoCJK${_lang}-VF.otf \
+ "$pkgdir"/usr/share/fonts/noto-cjk/Noto${_font}MonoCJK.otf
done
install -Dm644 -t "$pkgdir"/usr/share/fontconfig/conf.avail/ \
@@ -82,31 +76,24 @@ _package_locl(){
}
_package_subset(){
+ # the conflict is due to the multi-lingual mono font
+ conflicts+=(noto-fonts-cjk-vf)
+ provides+=(noto-fonts-cjk-vf)
+
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
+ for _font in Sans Serif; do
+ install -Dm644 \
+ ${_font}/Variable/OTF/Subset/Noto${_font}${_lang^^}-VF.otf \
+ "$pkgdir"/usr/share/fonts/noto-cjk/Noto{_font}${_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)
+ # mono is available only for sans
+ [ "${_font}" = "Sans" ] || continue
+ # there are no subset mono fonts, so install the multi-lingual with default locl
+ install -Dm644 \
+ ${_font}/Variable/OTF/Mono/Noto${_font}MonoCJK${_lang}-VF.otf \
+ "$pkgdir"/usr/share/fonts/noto-cjk/Noto${_font}MonoCJK.otf
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