#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com)

pkgname=play-font
pkgver=1.003
pkgrel=1gv
arch=noarch
source=("https://github.com/google/fonts/raw/master/ofl/play/Play-Regular.ttf"
		"https://github.com/google/fonts/raw/master/ofl/play/Play-Bold.ttf"
		"https://github.com/google/fonts/raw/master/ofl/play/OFL.txt")
docs=("*.txt")
url=https://www.google.com/fonts/specimen/Play
options=('nosrcpack')

doinst() {
	# Update the X font indexes:
	if [ -x usr/bin/mkfontdir ]; then
  		usr/bin/mkfontscale usr/share/fonts/TTF
		usr/bin/mkfontdir usr/share/fonts/TTF
	fi

	if [ -x usr/bin/fc-cache ]; then
  		usr/bin/fc-cache usr/share/fonts/TTF >/dev/null 2>&1
	fi
}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"play-font (a minimalistic sans serif typeface)"
"Play is a minimalistic sans serif typeface. All letters in Play derive"
"from the 'O' – square and circular at the same time. Play is designed"
"with large, open counters, ample lowercase x-heights and a corporate,"
"yet friendly appearance. The combination of these qualities give Play"
"both a high legibility and readability."
)


build() {
	cd $startdir/src
	mkdir -p $startdir/pkg/usr/share/fonts/TTF
	cp -a *.ttf $startdir/pkg/usr/share/fonts/TTF
}