aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ttf-heuristica/APKBUILD
blob: 154849b0910f1ebbd5581f251b47677add892539 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ttf-heuristica
pkgver=1.0.2
pkgrel=0
pkgdesc="Heuristica is an extended version of Adobe Utopia ttf font."
url="http://code.google.com/p/evristika/"
arch="noarch"
license="OFL"
depends="fontconfig"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
# added fontconfig configuration from:
# https://github.com/bohoomil/fontconfig-ultimate/tree/master/fontconfig_patches/fonts-settings
source="https://downloads.sourceforge.net/project/heuristica/heuristica-ttf-${pkgver}.tar.xz
	45-heuristica.conf
	90-tt-heuristica.conf"

_builddir="$srcdir"

build() {
	cd "$_builddir"
}

package() {
	mkdir -p "$pkgdir"/usr/share/fonts/$pkgname \
		"$pkgdir"/etc/fonts/conf.avail \
		"$pkgdir"/etc/fonts/conf.d
	for i in "$_builddir"/*.ttf; do
		install -m644 "$i" \
			"$pkgdir"/usr/share/fonts/$pkgname/ || return 1
	done
	for j in "$srcdir"/*.conf; do
		install -m644 "$j" \
			"$pkgdir"/etc/fonts/conf.avail/ || return 1
		cd "$pkgdir"/etc/fonts/conf.d
		ln -sf /etc/fonts/conf.avail/${j##*/}
	done
}
md5sums="874fe2d962cc511aa9d4edbded8205af  heuristica-ttf-1.0.2.tar.xz
aebd478b94816248f486e17a5627cc8e  45-heuristica.conf
42907dcc7ce2ef65c24a14c195963e71  90-tt-heuristica.conf"
sha256sums="08bf21e44941d195dceab637c3d8e22f4b5ce8490c83993cebd85d721b92553d  heuristica-ttf-1.0.2.tar.xz
eac2ffc894005dc53357d649ce2cf73102e50740ecccc977f5aeed2e4ffaefe0  45-heuristica.conf
e433412ca046a2d29fa02b99b8c282a4220ad5e638efb7647cebda75e409824b  90-tt-heuristica.conf"
sha512sums="8b763a8f44444a96a454d2b1e987e095fc72a67c3c0be4d24a18b6ddd417cb2bbdb57475b5c9515c3e0efb96d4afd5cf6095685ab035f8af4fff7f7e6f9ffb3d  heuristica-ttf-1.0.2.tar.xz
684250c4c575c41d5ea1eff7566532fe5ea2c31c62f35e7e9933dd9212addef980521a3b9421619fdeeec65d0e6863ce7f75ca5b8b00bd749abc654877f569d2  45-heuristica.conf
9a3f68237a7f5c61e745bcf74f4319133fbaebbbf69a4ad2770d572820fc4b1d08b13e6482001f236f0976bb893d726f7fea2fe904ad60d7e5327561e2c91e24  90-tt-heuristica.conf"