# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=ttf-noto
pkgver=20170403
pkgrel=2
pkgdesc="Noto font family"
url="https://www.google.com/get/noto/"
arch="noarch"
options="!check"  # how do you test a font?
license="OFL-1.1"
depends="fontconfig"
makedepends=""
# added fontconfig configuration from:
# https://github.com/bohoomil/fontconfig-ultimate/tree/master/fontconfig_patches/fonts-settings
source="https://dev.gentoo.org/~floppym/dist/noto-$pkgver.tar.xz
	40-noto-arabic.conf
	45-noto-sans.conf
	45-noto-serif.conf
	90-tt-noto-sans.conf
	90-tt-noto-serif.conf"
builddir="$srcdir"/noto-$pkgver

package() {
	mkdir -p "$pkgdir"/usr/share/fonts/$pkgname/
	mkdir -p "$pkgdir"/etc/fonts/conf.d/
	cp "$builddir"/*.ttf "$pkgdir"/usr/share/fonts/$pkgname/
	cp "$srcdir"/*.conf "$pkgdir"/etc/fonts/conf.d/
}

sha512sums="f8f1414b5b6f793e86ef3cc6a6320c4545f079b337c7672cb8cccc3c50d21d353d81557da4a555cdb6524c79be3e4c167f7d5aac102c38d64926f3b1887ca7f3  noto-20170403.tar.xz
47396e7a4e5dfb38d3df6dff0b4584757cc132f393d3410463eefc3dbb5f2af592a6b07a4c098d8c594be03f23e4eb84b76b672245fe0cea816927cf535ea270  40-noto-arabic.conf
748dfecbc3ad5c3750764e6ae889bbc4e614885237bb91ece138d2dc5014fd41ea6361b32982cfa4e76c7c092e0b93f90cccd0b92acbd408b7c302c44c1523e6  45-noto-sans.conf
5059295a1c36c4ec4aae61443221ee74876315127895da0773e4feb77e70cfc4b7923dde8f6510d6cf9de019082e15f1f4fd4b53f0bce4d2a681541f2de587df  45-noto-serif.conf
e5d252e4ee265f9cc7a91eea0e0f8c74315a60cbce606860e0f9e722eb9331f8d87d541dd715bef46bdb4e637bab0344f2fd98cc0424e7cfa17e588efa07eb33  90-tt-noto-sans.conf
4f8760f7eeae99050a3b8ac73f4eeeb5ad32e9e5224034292e3ecdc260ffcc92f3ae45aa35e9f86905fce4ff909bb3263e25d8f4fe56dacba2fb3de2107e314f  90-tt-noto-serif.conf"