void-packages/srcpkgs/noto-fonts-cjk-serif/template

41 lines
1.6 KiB
Bash

# 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
}
}