From 0c202003f8d487eca8b1205ff2665103a06d610e Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 22 Sep 2014 11:44:24 +0200 Subject: [PATCH] New package: google-fonts-ttf-git-20140922 --- srcpkgs/google-fonts-ttf-git/template | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/google-fonts-ttf-git/template diff --git a/srcpkgs/google-fonts-ttf-git/template b/srcpkgs/google-fonts-ttf-git/template new file mode 100644 index 00000000000..048fb351b61 --- /dev/null +++ b/srcpkgs/google-fonts-ttf-git/template @@ -0,0 +1,29 @@ +# Template file for 'google-fonts-ttf-git' +pkgname=google-fonts-ttf-git +version=20140922 +revision=1 +noarch=yes +hostmakedepends="git" +makedepends="font-util xbps-triggers" +depends="${makedepends} 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" + +do_fetch() { + local url="git://github.com/w0ng/googlefontdirectory.git" + msg_normal "Fetching source from ${url}...\n" + git clone ${url} ${pkgname}-${version} +} + +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 +}