# Contributor: Tambra Wilcox <Tambra@J30AD.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=urw-base35-fonts
pkgver=20170801.1
pkgrel=0
pkgdesc="(URW)++ core font set"
url="https://github.com/ArtifexSoftware/urw-base35-fonts"
arch="noarch"
options="!check"  # No tests provided.
license="AGPL-3.0-only WITH font-exception"
depends=""
makedepends=""
subpackages=""
source="urw-base35-fonts-$pkgver.tar.gz::https://github.com/ArtifexSoftware/urw-base35-fonts/archive/$pkgver.tar.gz"

package() {
	mkdir -p "$pkgdir"/usr/share/fonts/ttf-urw-base35
	cp -a "$builddir"/fonts/*.otf "$pkgdir"/usr/share/fonts/ttf-urw-base35/

	mkdir -p "$pkgdir"/usr/share/fonts/urw-base35
	cp -a "$builddir"/fonts/*.afm "$pkgdir"/usr/share/fonts/urw-base35/
	cp -a "$builddir"/fonts/*.t1  "$pkgdir"/usr/share/fonts/urw-base35/

	mkdir -p "$pkgdir"/etc/fonts/conf.d/
	cd "$builddir"/fontconfig
	for _fconf in *.conf; do
		install -m 644 "$_fconf" "$pkgdir"/etc/fonts/conf.d/61-${_fconf}.conf
	done
}

sha512sums="897fef5968d659ff49dc144f6c94513b32f8d9167c4fabcd7c3b13d2ce4c82d4182b25528291a36158d7a6e1cd864c67d22ce64a2c55dad4e984305f2fd65a91  urw-base35-fonts-20170801.1.tar.gz"