APKBUILD 1.13 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.12.3
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"
10
depends=
11
depends_dev=""
12
makedepends="$depends_dev freetype-dev expat-dev python2-dev gperf"
Mika Havela's avatar
Mika Havela committed
13
install=
14
triggers="$pkgname.trigger=/usr/share/fonts/*"
15 16
subpackages="$pkgname-doc $pkgname-dev"
source="http://fontconfig.org/release/${pkgname}-${pkgver}.tar.gz"
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 32
		--disable-docs \
		|| return 1
33
	make || return 1
34 35 36
}

package() {
37
	cd "$builddir"
Natanael Copa's avatar
Natanael Copa committed
38
	make -j1 DESTDIR="$pkgdir" install || return 1
Mika Havela's avatar
Mika Havela committed
39

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

43
sha512sums="b17725c028be1c5e6f76c136b0ed7db1be7694cbbf217310083512708e05cdc1a824427f89082e6ef259c10297900f26cbe899f7c5762e7662855739f3eff5ea  fontconfig-2.12.3.tar.gz"