# Template file for 'google-fonts-ttf-git'
pkgname=google-fonts-ttf-git
version=20150721
revision=1
_commit=7a1b0cb0c376ed7ca10b3c45b07dc3146136768c
noarch=yes
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, UFL"
conflicts="fonts-croscore-ttf>=0"
distfiles="https://github.com/google/fonts/archive/$_commit.tar.gz"
checksum=75397941fcb502cffbb1ca83665112c1dd21eb172042fabc02c201e64e289615
wrksrc="fonts-$_commit"

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
}
