aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/otf-cantarell/APKBUILD
blob: 7cb3e9cbebef3f11c2d3ad82cfa5d656678f47ad (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
56
57
58
59
60
61
62
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=otf-cantarell
pkgver=0.0.16
pkgrel=0
pkgdesc="Cantarell font family."
url="http://abattis.org/cantarell/"
arch="noarch"
license="GPL2"
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="https://download.gnome.org/sources/cantarell-fonts/0.0/cantarell-fonts-$pkgver.tar.xz
	45-cantarell.conf
	90-non-tt-cantarell.conf"

_builddir="$srcdir"/cantarell-fonts-$pkgver

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-fontdir=/usr/share/fonts/$pkgname \
		--with-configdir=/etc/fonts/conf.avail \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
        mkdir -p "$pkgdir"/etc/fonts/conf.avail \
                "$pkgdir"/etc/fonts/conf.d
        for j in "$srcdir"/*.conf; do
                install -m644 "$j" \
                        "$pkgdir"/etc/fonts/conf.avail/ || return 1
        done
	for k in "$pkgdir"/etc/fonts/conf.avail/*.conf; do
		cd "$pkgdir"/etc/fonts/conf.d
		ln -sf /etc/fonts/conf.avail/"${k##*/}"
	done
}

md5sums="6665af844817ec1390f8ae2a16feb369  cantarell-fonts-0.0.16.tar.xz
e47490547662d4ffc08a30ceef41ebae  45-cantarell.conf
ece1ab6af1de1a56c368d8fa814ad9c2  90-non-tt-cantarell.conf"
sha256sums="15bf87555321556750bc68ace360f3df420359a8ab257e15c44fb69710152f1c  cantarell-fonts-0.0.16.tar.xz
26e2eaff8c5f930602be0b247aef7d67a74d7c0a30c16202c7f75bb51a770154  45-cantarell.conf
7f6b723cdd15c61b8b21912a7269d4e710af74222af8263de7cdd778110a7dbc  90-non-tt-cantarell.conf"
sha512sums="12936e56d1dd3eac3db5a02b854769ba7c8bd06bf4942c505d81ea20529ee450e07f0f347e3861a49212ef7291452716537c05375f74877246f49d186ad681b0  cantarell-fonts-0.0.16.tar.xz
eabc77c0e4b490341ca3d29cf3f6361005d3be2e2f91a9c821bd7ff0d7ee7d16e71793fbcdf42c922491c62474f421128f76f7b3412ceb833faef3a019ec94b6  45-cantarell.conf
8e67b3ce3fc57243a146ad8f52fd1062f160759a89c2b0d999e26e52dbe2c95159b3190b3ae6dc90b1df246ca57eef14442393fa764ad657a7cecfe1663a54ae  90-non-tt-cantarell.conf"