aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ttf-caladea/APKBUILD
blob: 63bcd3668273e3322b70e551eae4e36c94e90b9c (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ttf-caladea
pkgver=20130214
pkgrel=0
pkgdesc="Caladea is a serif font metrically compatible with Cambria."
url="https://code.google.com/p/chromium/issues/detail?id=168879"
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://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-$pkgver.tar.gz
	45-caladea.conf
	90-tt-caladea.conf"

_builddir="$srcdir"/crosextrafonts-$pkgver

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="368f114c078f94214a308a74c7e991bc  crosextrafonts-20130214.tar.gz
5482372b72ca819be4a6b3cc483d0243  45-caladea.conf
2a82278467fb1fe0a2187aed2269e0ea  90-tt-caladea.conf"
sha256sums="c48d1c2fd613c9c06c959c34da7b8388059e2408d2bb19845dc3ed35f76e4d09  crosextrafonts-20130214.tar.gz
3be38eb979beccd02fa8e6d7dbdbf1e0fa95c4c91ce42c392366214bfddb31fc  45-caladea.conf
b34aa966aae42be63d6f1344f9b8963b6d230d3dc26eadcef8d42829d6cd93db  90-tt-caladea.conf"
sha512sums="71f3cfcfbec33d8526184dce32f244f13b29f97aff31c0609487f27135adc0a4d5950e068f8be101e4fd06498cf103be68d781fc611142f060bbc9cb0b81273e  crosextrafonts-20130214.tar.gz
e9c9e2a396682d0d25e2efdc103ab3bf9893c9d94f203a126d31e0546ee50e841254ee276a30b713aecd8ce50792a687308c4b6d2c978049253e910b4a4f3130  45-caladea.conf
ba9c1a0bea7eeee4494f3c42dc83dc0d37961f3535f574bf5bf7424628d160197304bab35c9558007f3b2163ddac9bc9ee5fa93d69a802477055f13c52d05a74  90-tt-caladea.conf"