APKBUILD 1.32 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.13.0
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 16
source="http://fontconfig.org/release/${pkgname}-${pkgver}.tar.gz
	locale.patch"
Mika Havela's avatar
Mika Havela committed
17

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

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

25 26 27 28
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Mika Havela's avatar
Mika Havela committed
29
		--sysconfdir=/etc \
30
		--localstatedir=/var \
31
		--enable-static \
32
		--disable-nls \
tmpfile's avatar
tmpfile committed
33
		--disable-docs
34
	rm -f src/fcobjhash.h
tmpfile's avatar
tmpfile committed
35
	make
36 37
}

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

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

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

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