APKBUILD 1.1 KB
Newer Older
Mika Havela's avatar
Mika Havela committed
1
# Contributor: Mika Havela <mika.havela@gmail.com>
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Mika Havela's avatar
Mika Havela committed
3
pkgname=fontconfig
4 5
pkgver=2.12.6
pkgrel=0
A. Wilcox's avatar
A. Wilcox committed
6
pkgdesc="Library for configuring and customizing font access"
Mika Havela's avatar
Mika Havela committed
7
url="http://fontconfig.org"
8
arch="all"
Mika Havela's avatar
Mika Havela committed
9
license="GPL"
tmpfile's avatar
tmpfile committed
10
depends=""
11
depends_dev=""
12
makedepends="$depends_dev freetype-dev expat-dev python2-dev gperf"
13
triggers="$pkgname.trigger=/usr/share/fonts/*"
14 15
subpackages="$pkgname-doc $pkgname-dev"
source="http://fontconfig.org/release/${pkgname}-${pkgver}.tar.gz"
Mika Havela's avatar
Mika Havela committed
16

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

Mika Havela's avatar
Mika Havela committed
19
build() {
20 21 22
	cd "$builddir"
	# regenerate hash functions
	rm -f src/fcobjshash.h
Mika Havela's avatar
Mika Havela committed
23

24 25 26 27
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Mika Havela's avatar
Mika Havela committed
28
		--sysconfdir=/etc \
29
		--localstatedir=/var \
tmpfile's avatar
tmpfile committed
30 31
		--disable-docs
	make
32 33
}

A. Wilcox's avatar
A. Wilcox committed
34 35 36 37 38
check() {
	cd "$builddir"
	make check
}

39
package() {
40
	cd "$builddir"
tmpfile's avatar
tmpfile committed
41
	make -j1 DESTDIR="$pkgdir" install
Mika Havela's avatar
Mika Havela committed
42

43
	install -m644 -D COPYING "$pkgdir"/usr/share/licenses/"${pkgname}"/COPYING
Mika Havela's avatar
Mika Havela committed
44 45
}

46
sha512sums="7c8a4039b4139fefddb3f73881a72e6c9ca940824d9315a1f111f0bf00f3604e15dd06b88cdc597332791820daf57d95f0ac6e7e9f6d3c3127cd0fffef9ce079  fontconfig-2.12.6.tar.gz"