aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/otf-oswald/APKBUILD
blob: aa67b9622071aa90305e0de2ad2d4a4a4ca7d2c0 (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
51
52
53
54
55
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=otf-oswald
pkgver=3.0
_hash=9dd0521c8c06dd24998fe5d9cd644dab9cbbacca
pkgrel=0
pkgdesc="Oswald is a reworking of the classic Gothic and Grotesque type styles."
url="http://oswaldfont.com"
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="$pkgname-$pkgver.tar.gz::https://github.com/vernnobile/OswaldFont/archive/$_hash.tar.gz
	45-oswald.conf
	90-non-tt-oswald.conf"

_builddir="$srcdir"/OswaldFont-$_hash/3.0

build() {
	cd "$_builddir"
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/usr/share/fonts/$pkgname \
		"$pkgdir"/etc/fonts/conf.avail \
		"$pkgdir"/etc/fonts/conf.d
	
	install -m644 Italic/*/src/*.otf \
		"${pkgdir}"/usr/share/fonts/"${pkgname}" || return 1
	install -m644 Roman/*/src/*.otf \
		"${pkgdir}"/usr/share/fonts/"${pkgname}" || return 1
	
	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="55d151288b5f20ae263b39181dc957f8  otf-oswald-3.0.tar.gz
3abe7ce6d6444a06b49735ac94523666  45-oswald.conf
68374ff2058339aac6235774abc1134f  90-non-tt-oswald.conf"
sha256sums="a4924d1ca5c894a390cf255ca4ba1a74718ff0b718e742bc8737367cbed022fa  otf-oswald-3.0.tar.gz
0e26f5ca0f056339cef370a5b62f81fccd426957f7456f271c3d1fabe83fba0b  45-oswald.conf
e16f4e34197563187d755bab934644fceebd6ac961d303fbb3c6f4e8c7265a04  90-non-tt-oswald.conf"
sha512sums="a8050eb01e3aa8ab35de9b782434aa9bd6213dd3e9cf5f5b89d50ed11639da38aec9cc69f2362ff9c8d9071add6fc5831dc8b0d25a0d426c4041c95f9dd86564  otf-oswald-3.0.tar.gz
73b1be04339ead8d22000a48180a74fdcc324dbe5f5dc9fb832c76304eaaa6473865c15d5243c6f4abf71a85d16cb042a3c4f8ae9426753cd24c7c5b8d21a603  45-oswald.conf
24921f12096b08764e9ee31de66f0a36f74a32a0b38a754c646a5d87f1ce5911fddd88db08c1e5b22632802b369854701925f312aaca241fe9bfdef20f00d3b1  90-non-tt-oswald.conf"