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

26 lines
940 B
Bash

# Template file for 'google-fonts-ttf'
pkgname=google-fonts-ttf
version=20170614
revision=1
noarch=yes
_githash=86d01fdd4854cf00c12aaa471d7423bb9b833f48
wrksrc="fonts-${_githash}"
depends="font-util cantarell-fonts"
font_dirs="/usr/share/fonts/TTF"
short_desc="TrueType fonts from the Google Fonts project"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://www.google.com/fonts"
license="Apache-2.0, OFL-1.1, UFL-1.0"
distfiles="https://github.com/google/fonts/archive/${_githash}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=6416d0c4c86c65bd6426fd688dafe06e9819134c971bc223a95a9b6cdd3cf275
conflicts="fonts-croscore-ttf>=0 font-fira-ttf>=0 font-sourcecodepro>=0 ttf-ubuntu-font-family>=0"
do_install() {
vmkdir usr/share/fonts/TTF
find . -type f -name '*.ttf' -exec install -Dm644 '{}' ${DESTDIR}/usr/share/fonts/TTF \;
}
post_install() {
# remove cantarell fonts
rm -f ${DESTDIR}/usr/share/fonts/TTF/Cantarell-*.ttf
}