pkgname=font-clear-sans
export commit=1993725
pkgver=git$commit
pkgrel=1slint
arch=noarch
options=('nosrcpack')
docs=("LICENSE.txt" "README.md")
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (TTF font originally from Intel)"
"Adopted by Mozilla for the Firefox for Android browser, Clear Sans has"
"been recognized as a versatile OpenType font for screen print and Web."
"Clear Sans was designed with on-screen legibility in mind. It strikes"
"a balance between contemporary, professional, and stylish expression"
"and thoroughly functional purpose. It has a sophisticated and elegant"
"personality at all sizes, and its thoughtful design becomes even more"
"evident at the thin weight."
"Source URL: https://github.com/intel/clear-sans"
)
doinst() {
# Update the X font indexes:
if [ -x /usr/bin/fc-cache ]; then
  /usr/bin/fc-cache -f &
fi
# These GTK+/pango files need to be kept up to date for
# proper input method, pixbuf loaders, and font support.
if [ -x /usr/bin/update-gtk-immodules ]; then
  /usr/bin/update-gtk-immodules
fi
if [ -x /usr/bin/update-gdk-pixbuf-loaders ]; then
  /usr/bin/update-gdk-pixbuf-loaders
fi
if [ -x /usr/bin/update-pango-querymodules ]; then
  /usr/bin/update-pango-querymodules
fi
}
build() {
	git clone https://github.com/intel/clear-sans.git
	cd clear-sans
	git checkout $commit
	mkdir -p $PKG/usr/share/fonts/TTF
    cp  TTF/*.ttf $PKG/usr/share/fonts/TTF || exit
}
