# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=ttf-inconsolata
pkgver=20160814
_gitref=c6c7e432a29bd7c817feed0963f568a6d710625c
pkgrel=1
pkgdesc="Inconsolata fonts"
url="https://www.google.com/fonts/specimen/Inconsolata"
license="OFL"
arch="noarch"
source="Inconsolata-Regular.ttf+$_gitref::https://github.com/google/fonts/raw/$_gitref/ofl/inconsolata/Inconsolata-Regular.ttf
	Inconsolata-Bold.ttf+$_gitref::https://github.com/google/fonts/raw/$_gitref/ofl/inconsolata/Inconsolata-Bold.ttf"

package() {
	cd "$srcdir"

	local file; for file in *.ttf+*; do
		install -m 644 -D $file \
			"$pkgdir"/usr/share/fonts/truetype/inconsolata/${file%%+*} || return 1
	done
}

md5sums="b0639eb725c0df94f68b779889679457  Inconsolata-Regular.ttf+c6c7e432a29bd7c817feed0963f568a6d710625c
c6623d74820bb62d25c969a50bafbb46  Inconsolata-Bold.ttf+c6c7e432a29bd7c817feed0963f568a6d710625c"
sha256sums="346eff8b8292ef2b8026cf1dbea3fc0c79eba444270d38d73da895ddcba74e15  Inconsolata-Regular.ttf+c6c7e432a29bd7c817feed0963f568a6d710625c
0db9dc0cf39efef147a7b368c98e1b7588afd2bc4d30e4c9e313f5511e599a87  Inconsolata-Bold.ttf+c6c7e432a29bd7c817feed0963f568a6d710625c"
sha512sums="7aeb0b16def1e454735f40375099b636834eb838d518592f7869e58a587f8a5c7b7d2289c9edc812bf3390d8c9cbb124c2819e2b7e77e938b3396ba6472c4b41  Inconsolata-Regular.ttf+c6c7e432a29bd7c817feed0963f568a6d710625c
937ddafda60c85a404658b420a46f7e5c9836d0e060ad29ade5b0c989777daca22c230409ce5973cd655295def1ef9f59fbd796d171e647ae8a42055e3fa2dab  Inconsolata-Bold.ttf+c6c7e432a29bd7c817feed0963f568a6d710625c"
