32 lines
1.3 KiB
Bash
32 lines
1.3 KiB
Bash
# Template file for 'noto-fonts-cjk'
|
|
pkgname=noto-fonts-cjk
|
|
# set to the date of the latest release packaged
|
|
version=20230817
|
|
revision=1
|
|
# the sans and serif variants are released on separate tags
|
|
_sans_version=2.004
|
|
_serif_version=2.002
|
|
create_wrksrc=yes
|
|
depends="font-util"
|
|
short_desc="Google Noto CJK Fonts"
|
|
maintainer="classabbyamp <void@placeviolette.net>"
|
|
license="OFL-1.1"
|
|
homepage="https://www.google.com/get/noto/help/cjk/"
|
|
changelog="https://raw.githubusercontent.com/googlefonts/noto-cjk/main/Sans/NEWS.md
|
|
https://raw.githubusercontent.com/googlefonts/noto-cjk/main/Serif/NEWS.md"
|
|
distfiles="https://github.com/googlefonts/noto-cjk/releases/download/Sans${_sans_version}/03_NotoSansCJK-OTC.zip
|
|
https://github.com/googlefonts/noto-cjk/releases/download/Serif${_serif_version}/04_NotoSerifCJKOTC.zip"
|
|
checksum="528f4e1b25ff3badb0321b38d015d954c4c0de926c7830ef50e4a1948f6a3eed
|
|
941985d9fd860492d15640b53edc9668d568877140c524ccd83deb3d9b7a2950"
|
|
font_dirs="/usr/share/fonts/noto"
|
|
|
|
do_install() {
|
|
vmkdir usr/share/fonts/noto
|
|
vcopy "*.ttc" usr/share/fonts/noto
|
|
vcopy "OTC/*.ttc" usr/share/fonts/noto
|
|
vinstall ${FILESDIR}/70-noto-fonts-cjk.conf 644 usr/share/fontconfig/conf.avail
|
|
vmkdir etc/fonts/conf.d
|
|
ln -sf /usr/share/fontconfig/conf.avail/70-noto-fonts-cjk.conf ${DESTDIR}/etc/fonts/conf.d/
|
|
vlicense LICENSE
|
|
}
|