APKBUILD 1.17 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
pkgver=2.13.1
5
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 python3-dev gperf util-linux-dev"
13
triggers="$pkgname.trigger=/usr/share/fonts/*"
14
subpackages="$pkgname-doc $pkgname-dev"
15
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 \
30
		--enable-static \
31
		--disable-nls \
tmpfile's avatar
tmpfile committed
32
		--disable-docs
33
	rm -f src/fcobjhash.h
tmpfile's avatar
tmpfile committed
34
	make
35 36
}

A. Wilcox's avatar
A. Wilcox committed
37 38 39 40 41
check() {
	cd "$builddir"
	make check
}

42
package() {
43
	cd "$builddir"
tmpfile's avatar
tmpfile committed
44
	make -j1 DESTDIR="$pkgdir" install
Mika Havela's avatar
Mika Havela committed
45

46
	install -m644 -D COPYING "$pkgdir"/usr/share/licenses/"${pkgname}"/COPYING
Mika Havela's avatar
Mika Havela committed
47 48
}

49
sha512sums="830df32e944ee21ad02a9df04787b9902af36ffc13913524acef6e38799a38c5df7a6e407cc0ff9c24455520549d53b3d85d22642a229ac654dc9269926f130b  fontconfig-2.13.1.tar.gz"