void-packages/srcpkgs/google-fonts-ttf-git/template
Alessio Sergi ec794dd567 google-fonts-ttf-git: update to 20150315
Switch to Google's new official GitHub repository.
2015-03-15 18:28:20 +01:00

27 lines
783 B
Bash

# Template file for 'google-fonts-ttf-git'
pkgname=google-fonts-ttf-git
version=20150315
revision=1
noarch=yes
hostmakedepends="git"
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"
do_fetch() {
local url="git://github.com/google/fonts.git"
msg_normal "Fetching source from ${url}...\n"
git clone ${url} ${wrksrc}
}
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
}