aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ttf-opensans/APKBUILD
blob: 635c241db62ea4f7d1911749a89d49f311e3c2a9 (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-opensans
pkgver=1.2
pkgrel=0
pkgdesc="Open Sans is a humanist sans serif typeface designed by Steve Matteson"
url="http://opensans.com/"
arch="noarch"
license="Apache"
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="http://dev.alpinelinux.org/archive/ttf-opensans/ttf-opensans-$pkgver.tar.gz
	45-opensans.conf
	90-tt-opensans.conf"

_builddir="$srcdir"/$pkgname

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="65288f5ce42c8f0c65b1325d74df60cc  ttf-opensans-1.2.tar.gz
92ba870ab9de8466dfb3fdf3f02f5eaa  45-opensans.conf
84f21626d61c7f2a61d673aabddf10fb  90-tt-opensans.conf"
sha256sums="92470f153bb19fc3edefde04f485755cc084cdd7d4bcedf90f655a09ffa32032  ttf-opensans-1.2.tar.gz
fa343948e4225f8ab73ce72ff4f6520dec60be396beb57551f30e675b498fd31  45-opensans.conf
e6213d0af8c24688742903d5b7bd77515c3a249db0a9e0cef4aa107f5b64d5b3  90-tt-opensans.conf"
sha512sums="6d20a92286db4757acf05123571388d381c761f46080c9dbf175a69535a4b29efa284d1e629a9cbe7f9e43ba05de4140ce38ea6c0f3e53e596c50f9cf3dcde21  ttf-opensans-1.2.tar.gz
853d50f6d0ff309b170ae6e0fb8f6a0b96dbf842b8ef9ac3c9f4c22aa269ef7a1009d6c39810be1e9adab7d44fb5e7772d5d7ecfecf6cfe18538b999e3390215  45-opensans.conf
4e3c0e9d3e6fb8f87ec294cda375671a50588998192384e8503550f8c9471501e8d1fd9fb1eb819a630651ab8a81054704d0ca15c0d5de31d5e2067f3837d276  90-tt-opensans.conf"