aboutsummaryrefslogtreecommitdiffstats
path: root/main/ttf-ubuntu-font-family/APKBUILD
blob: 935ec1a00dbd5eda491253e670312d692d75468e (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.83
pkgrel=0
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="a24b8136b8f3bb93f166baf97d9328de  ubuntu-font-family-0.83.zip
da8b6ab4a70aa9ffdcaf54d53ebc540b  45-ubuntu.conf
be2835e4d15de5916543d232f26b738d  90-tt-ubuntu.conf"
sha256sums="456d7d42797febd0d7d4cf1b782a2e03680bb4a5ee43cc9d06bda172bac05b42  ubuntu-font-family-0.83.zip
16ea54f86dbf49b0152d0952de47ac5184f65bd80e2ada9116f29e18e7383b48  45-ubuntu.conf
632230b9ed91451d04cb3637422b327672d9fe459a082cd226b93324b8b976c9  90-tt-ubuntu.conf"
sha512sums="d9ab7afc8aab55810de6e403aa02c0118bb35d94844cc14bb07b71daef4c6d63a9c927f0e81a9f97d29904512d94fa0226fbff2341351ac000fc233d2dc55727  ubuntu-font-family-0.83.zip
5aad0801ef01921750ced9003d8896a0a58e20ed164ea59207a71967a28af6d54c34fb7763838e0b73cf4b4b4b72f8ba7f551b800557b09d1e1e25df3d8d6252  45-ubuntu.conf
c12eb45f2e5c1418ecd0f4e42f9c0c661134db2169f26b67ccd48e3524efda6e42cb192b6b9535b5f447cbe3a2ffb582229ed2789b6758d3ce98254bdc31fc8e  90-tt-ubuntu.conf"