aboutsummaryrefslogtreecommitdiffstats
path: root/main/ttf-ubuntu-font-family/APKBUILD
blob: b67d3287d01cc2ffb364034fd15900ce279ee1ee (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=ttf-ubuntu-font-family
pkgver=0.80
pkgrel=1
pkgdesc="Ubuntu font family"
url="http://font.ubuntu.com/"
arch="noarch"
license="Custom"
depends=
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://font.ubuntu.com/download/ubuntu-font-family-${pkgver}.zip
	45-ubuntu.conf
	90-tt-ubuntu.conf"

_builddir="${srcdir}/ubuntu-font-family-${pkgver}"

package() {
	cd "$_builddir"

        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="a1fc70f5a5b1d096ab8310886cddaa1c  ubuntu-font-family-0.80.zip
da8b6ab4a70aa9ffdcaf54d53ebc540b  45-ubuntu.conf
be2835e4d15de5916543d232f26b738d  90-tt-ubuntu.conf"
sha256sums="107170099bbc3beae8602b97a5c423525d363106c3c24f787d43e09811298e4c  ubuntu-font-family-0.80.zip
16ea54f86dbf49b0152d0952de47ac5184f65bd80e2ada9116f29e18e7383b48  45-ubuntu.conf
632230b9ed91451d04cb3637422b327672d9fe459a082cd226b93324b8b976c9  90-tt-ubuntu.conf"
sha512sums="d35e382fd8c20057cfcbcca55b747eaf678fdbf2e146ee91cd081bd0614d2c88e5aa9f8d9e04b4368a17f89c243956532bd361f23609e9dd2f124fc52e218086  ubuntu-font-family-0.80.zip
5aad0801ef01921750ced9003d8896a0a58e20ed164ea59207a71967a28af6d54c34fb7763838e0b73cf4b4b4b72f8ba7f551b800557b09d1e1e25df3d8d6252  45-ubuntu.conf
c12eb45f2e5c1418ecd0f4e42f9c0c661134db2169f26b67ccd48e3524efda6e42cb192b6b9535b5f447cbe3a2ffb582229ed2789b6758d3ce98254bdc31fc8e  90-tt-ubuntu.conf"