void-packages/srcpkgs/fonts-nanum-ttf/template

38 lines
1.3 KiB
Bash

# Template file for 'fonts-nanum-ttf'
pkgname=fonts-nanum-ttf
version=20200506
revision=1
wrksrc=${pkgname%-*}-${version}
depends="font-util"
short_desc="Nanum Korean fonts"
maintainer="travankor <travankor@tuta.io>"
license="OFL-1.1"
homepage="https://hangeul.naver.com/2017/nanum"
distfiles="${DEBIAN_SITE}/main/f/${pkgname%-*}/${pkgname%-*}_${version}.orig.tar.xz"
checksum=157803748198151250a3cf7cb03aef844e408e9c98849dd889e191846aacad4b
font_dirs="/usr/share/fonts/TTF"
do_install() {
vmkdir usr/share/fonts/TTF
install -m644 *.ttf ${DESTDIR}/usr/share/fonts/TTF
}
fonts-nanum-ttf-extra_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - additional variants"
pkg_install() {
vmove usr/share/fonts/TTF/NanumBarunGothicLight.ttf
vmove usr/share/fonts/TTF/NanumBarunGothicUltraLight.ttf
vmove usr/share/fonts/TTF/NanumBarunpen*.ttf
vmove usr/share/fonts/TTF/NanumBrush.ttf
vmove usr/share/fonts/TTF/NanumGothicExtraBold.ttf
vmove usr/share/fonts/TTF/NanumGothicLight.ttf
vmove usr/share/fonts/TTF/NanumMyeongjoExtraBold.ttf
vmove usr/share/fonts/TTF/NanumPen.ttf
vmove usr/share/fonts/TTF/NanumSquareEB.ttf
vmove usr/share/fonts/TTF/NanumSquareL.ttf
vmove usr/share/fonts/TTF/NanumSquareRoundEB.ttf
vmove usr/share/fonts/TTF/NanumSquareRoundL.ttf
}
}