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

30 lines
902 B
Bash

# Template file for 'noto-fonts-ttf'
pkgname=noto-fonts-ttf
version=20180322
revision=2
noarch=yes
_githash=b207fc31b093948dfc6d77b47042ce2f335bc631
wrksrc="noto-fonts-${_githash}"
depends="font-util"
font_dirs="/usr/share/fonts/noto"
short_desc="Google Noto TTF Fonts"
maintainer="Peter Bui <pnutzh4x0r@gmail.com>"
license="OFL-1.1"
homepage="https://www.google.com/get/noto/"
distfiles="https://github.com/googlei18n/noto-fonts/archive/${_githash}.tar.gz"
checksum=67e8ba8c18ab1523bba9bf11c6c26a1d1083bddce04b1ff523183dbab64db7e9
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
}
}