2014-09-22 09:44:24 +00:00
|
|
|
# Template file for 'google-fonts-ttf-git'
|
|
|
|
pkgname=google-fonts-ttf-git
|
2014-11-16 16:28:46 +00:00
|
|
|
version=20141116
|
2014-09-22 09:44:24 +00:00
|
|
|
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 <al3hex@gmail.com>"
|
|
|
|
homepage="https://www.google.com/fonts"
|
|
|
|
license="Apache-2.0, OFL, UFL"
|
2014-11-16 16:28:46 +00:00
|
|
|
conflicts="fonts-croscore-ttf>=0"
|
2014-09-22 09:44:24 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|