aboutsummaryrefslogtreecommitdiffstats
path: root/main/fontconfig/APKBUILD
blob: d31b8940ad36514f7481e228d9cdfc7c6cf1f2a9 (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: Mika Havela <mika.havela@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fontconfig
pkgver=2.13.0
pkgrel=0
pkgdesc="Library for configuring and customizing font access"
url="http://fontconfig.org"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev freetype-dev expat-dev python3-dev gperf util-linux-dev"
triggers="$pkgname.trigger=/usr/share/fonts/*"
subpackages="$pkgname-doc $pkgname-dev"
source="http://fontconfig.org/release/${pkgname}-${pkgver}.tar.gz
	locale.patch"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	# regenerate hash functions
	rm -f src/fcobjshash.h

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-static \
		--disable-nls \
		--disable-docs
	rm -f src/fcobjhash.h
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install

	install -m644 -D COPYING "$pkgdir"/usr/share/licenses/"${pkgname}"/COPYING
}

sha512sums="5c0f98d1ac8e2ce0b2b59e75a86123967873e71ca3dd0d97911d6e6845a3cb2e099093a92933f55fe5a1c61821de26c1fa07141319c563c6280226b2cdea08e2  fontconfig-2.13.0.tar.gz
17a7bddc5d5aa78fadeb9fe7a08402c49eac0311ce423868b8020277299506c693e26fc50dfcbdb3d5d229ddf4ad65684a90ec389b537845b115768f4706a5d7  locale.patch"