mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
New package: noto-fonts-cjk-serif-2.003
split from noto-fonts-cjk, add variable fonts
This commit is contained in:
parent
bb3af536d4
commit
b84374175f
4 changed files with 106 additions and 0 deletions
1
srcpkgs/noto-fonts-cjk-serif-variable
Symbolic link
1
srcpkgs/noto-fonts-cjk-serif-variable
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
noto-fonts-cjk-serif
|
|
@ -0,0 +1,64 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<description>Properly match Noto CJK font languages</description>
|
||||||
|
<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" binding="strong">
|
||||||
|
<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" binding="strong">
|
||||||
|
<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" binding="strong">
|
||||||
|
<string>Noto Serif CJK HK</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
</fontconfig>
|
40
srcpkgs/noto-fonts-cjk-serif/template
Normal file
40
srcpkgs/noto-fonts-cjk-serif/template
Normal file
|
@ -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 <void@placeviolette.net>"
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
1
srcpkgs/noto-fonts-cjk-serif/update
Normal file
1
srcpkgs/noto-fonts-cjk-serif/update
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pattern='/archive/refs/tags/Serif\K[\d.]+(?=\.tar\.gz")'
|
Loading…
Add table
Reference in a new issue