APKBUILD 1.15 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
Leo's avatar
Leo committed
5
pkgrel=1
A. Wilcox's avatar
A. Wilcox committed
6
pkgdesc="Library for configuring and customizing font access"
Leo's avatar
Leo committed
7
url="https://www.freedesktop.org/wiki/Software/fontconfig"
8
arch="all"
Leo's avatar
Leo committed
9 10
license="MIT"
makedepends="freetype-dev expat-dev python3-dev gperf util-linux-dev"
11
triggers="$pkgname.trigger=/usr/share/fonts/*"
12
subpackages="$pkgname-doc $pkgname-dev"
13
source="http://fontconfig.org/release/${pkgname}-${pkgver}.tar.gz"
Mika Havela's avatar
Mika Havela committed
14 15

build() {
16 17 18
	cd "$builddir"
	# regenerate hash functions
	rm -f src/fcobjshash.h
Mika Havela's avatar
Mika Havela committed
19

20 21 22 23
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Mika Havela's avatar
Mika Havela committed
24
		--sysconfdir=/etc \
25
		--localstatedir=/var \
26
		--enable-static \
27
		--disable-nls \
Leo's avatar
Leo committed
28 29
		--disable-docs \
		--disable-static
30
	rm -f src/fcobjhash.h
tmpfile's avatar
tmpfile committed
31
	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="830df32e944ee21ad02a9df04787b9902af36ffc13913524acef6e38799a38c5df7a6e407cc0ff9c24455520549d53b3d85d22642a229ac654dc9269926f130b  fontconfig-2.13.1.tar.gz"