2014-09-22 11:44:24 +02:00
|
|
|
# Template file for 'google-fonts-ttf-git'
|
|
|
|
pkgname=google-fonts-ttf-git
|
2015-03-15 18:25:15 +01:00
|
|
|
version=20150315
|
2014-09-22 11:44:24 +02:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
|
|
|
hostmakedepends="git"
|
2015-03-15 18:25:15 +01:00
|
|
|
depends="font-util cantarell-fonts"
|
2014-09-22 11:44:24 +02:00
|
|
|
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"
|
2014-11-16 17:28:46 +01:00
|
|
|
conflicts="fonts-croscore-ttf>=0"
|
2014-09-22 11:44:24 +02:00
|
|
|
|
|
|
|
do_fetch() {
|
2015-03-15 18:25:15 +01:00
|
|
|
local url="git://github.com/google/fonts.git"
|
2014-09-22 11:44:24 +02:00
|
|
|
msg_normal "Fetching source from ${url}...\n"
|
2015-03-15 18:25:15 +01:00
|
|
|
git clone ${url} ${wrksrc}
|
2014-09-22 11:44:24 +02:00
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|