APKBUILD 1.08 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
tmpfile's avatar
tmpfile committed
4
pkgver=2.12.4
5
pkgrel=0
Mika Havela's avatar
Mika Havela committed
6 7
pkgdesc="The Fontconfig package is a library for configuring and customizing font access."
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 34
}

package() {
35
	cd "$builddir"
tmpfile's avatar
tmpfile committed
36
	make -j1 DESTDIR="$pkgdir" install
Mika Havela's avatar
Mika Havela committed
37

38
	install -m644 -D COPYING "$pkgdir"/usr/share/licenses/"${pkgname}"/COPYING
Mika Havela's avatar
Mika Havela committed
39 40
}

tmpfile's avatar
tmpfile committed
41
sha512sums="2be3ee0e8e0e3b62571135a3cae06e456c289dd1ad40ef2a7c780406418ee5efce863a833eca5a8ef55bc737a0ea04ef562bba6fd27e174ae43e42131b52810d  fontconfig-2.12.4.tar.gz"