summaryrefslogtreecommitdiff
path: root/user/urw-base35-fonts/APKBUILD
blob: 40b0da945cedcc260d6aa8463881b2aa6d2430a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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=""
source="urw-base35-fonts-$pkgver.tar.gz::https://github.com/ArtifexSoftware/urw-base35-fonts/archive/$pkgver.tar.gz"

package() {
	local _fconf

	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/
	pushd "$builddir"/fontconfig
	for _fconf in *.conf; do
		install -m 644 "$_fconf" "$pkgdir"/etc/fonts/conf.d/61-${_fconf}.conf
	done
	popd
}

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