diff --git a/srcpkgs/google-fonts-ttf/template b/srcpkgs/google-fonts-ttf/template new file mode 100644 index 00000000000..49aa070d124 --- /dev/null +++ b/srcpkgs/google-fonts-ttf/template @@ -0,0 +1,26 @@ +# Template file for 'google-fonts-ttf' +pkgname=google-fonts-ttf +version=20150721 +revision=2 +noarch=yes +_commit=7a1b0cb0c376ed7ca10b3c45b07dc3146136768c +wrksrc="fonts-${_commit}" +depends="font-util cantarell-fonts" +font_dirs="/usr/share/fonts/TTF" +short_desc="TrueType fonts from the Google Fonts project" +maintainer="Alessio Sergi " +homepage="https://www.google.com/fonts" +license="Apache-2.0, OFL, UFL" +distfiles="https://github.com/google/fonts/archive/${_commit}.tar.gz" +checksum=75397941fcb502cffbb1ca83665112c1dd21eb172042fabc02c201e64e289615 +replaces="google-fonts-ttf-git>=0" +conflicts="fonts-croscore-ttf>=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 +}