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

30 lines
905 B
Bash

# Template file for 'noto-fonts-ttf'
pkgname=noto-fonts-ttf
version=20181106
revision=1
noarch=yes
_githash=64f57055a31ee72789437d786e969ded9a1231f9
wrksrc="noto-fonts-${_githash}"
depends="font-util"
font_dirs="/usr/share/fonts/noto"
short_desc="Google Noto TTF Fonts"
maintainer="Peter Bui <pbui@github.bx612.space>"
license="OFL-1.1"
homepage="https://www.google.com/get/noto/"
distfiles="https://github.com/googlei18n/noto-fonts/archive/${_githash}.tar.gz"
checksum=d349032b65c4d34588857d33d7acbc99174407ac42e943892fe9eeacaa8acc7c
do_install() {
install -Dm644 hinted/Noto*.ttf -t ${DESTDIR}/usr/share/fonts/noto
}
noto-fonts-ttf-extra_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - additional variants"
pkg_install() {
vmove usr/share/fonts/noto/Noto*Condensed*.ttf
vmove usr/share/fonts/noto/Noto*SemiBold*.ttf
vmove usr/share/fonts/noto/Noto*Extra*.ttf
}
}