diff options
author | Rocka | 2023-10-20 20:03:13 +0800 |
---|---|---|
committer | Rocka | 2023-10-20 20:03:13 +0800 |
commit | bb6fa75e83964c1d5d9836951e9e58e69966f993 (patch) | |
tree | 2ed1d3399f424861713ed821272c2916269a21f9 | |
download | aur-bb6fa75e83964c1d5d9836951e9e58e69966f993.tar.gz |
init
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | 70-noto-sans-cjk.conf | 114 | ||||
-rw-r--r-- | PKGBUILD | 20 |
4 files changed, 152 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e40b73b990aa --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = otf-noto-sans-cjk + pkgdesc = Noto CJK fonts (Sans, Variable OTC) + pkgver = 2.004 + pkgrel = 1 + url = https://www.google.com/get/noto/help/cjk + arch = any + license = custom:SIL + provides = noto-fonts-cjk + source = https://github.com/notofonts/noto-cjk/releases/download/Sans2.004/03_NotoSansCJK-OTC.zip + source = 70-noto-sans-cjk.conf + sha256sums = 528f4e1b25ff3badb0321b38d015d954c4c0de926c7830ef50e4a1948f6a3eed + sha256sums = 83a923a9ad5ea558aac3087879ecae7822e437f7dd745a4d8c6385e061863779 + +pkgname = otf-noto-sans-cjk diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..d6413224cafa --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/ +src/ +*.pkg.tar* +*.zip diff --git a/70-noto-sans-cjk.conf b/70-noto-sans-cjk.conf new file mode 100644 index 000000000000..a750808d432d --- /dev/null +++ b/70-noto-sans-cjk.conf @@ -0,0 +1,114 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + <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" binding="strong"> + <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" binding="strong"> + <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" binding="strong"> + <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" binding="strong"> + <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" binding="strong"> + <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" binding="strong"> + <string>Noto Sans Mono CJK HK</string> + </edit> + </match> +</fontconfig>
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fab4cab7f750 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,20 @@ +pkgname=otf-noto-sans-cjk +pkgver=2.004 +pkgrel=1 +pkgdesc='Noto CJK fonts (Sans, Variable OTC)' +provides=(noto-fonts-cjk) +arch=(any) +url='https://www.google.com/get/noto/help/cjk' +license=(custom:SIL) +source=(https://github.com/notofonts/noto-cjk/releases/download/Sans${pkgver}/03_NotoSansCJK-OTC.zip + 70-noto-sans-cjk.conf) +sha256sums=('528f4e1b25ff3badb0321b38d015d954c4c0de926c7830ef50e4a1948f6a3eed' + '83a923a9ad5ea558aac3087879ecae7822e437f7dd745a4d8c6385e061863779') + +package_otf-noto-sans-cjk() { + install -Dm644 NotoSansCJK-*.ttc -t "$pkgdir"/usr/share/fonts/noto-cjk + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname + install -Dm644 70-noto-sans-cjk.conf -t "$pkgdir"/usr/share/fontconfig/conf.avail + install -d "$pkgdir"/usr/share/fontconfig/conf.default + ln -rs "$pkgdir"/usr/share/fontconfig/conf.avail/* "$pkgdir"/usr/share/fontconfig/conf.default +} |