APKBUILD 1.39 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.10.93
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 12
depends_dev="freetype-dev expat-dev"
makedepends="$depends_dev zlib-dev"
Mika Havela's avatar
Mika Havela committed
13
install=
14
triggers="$pkgname.trigger=/usr/share/fonts/*"
Mika Havela's avatar
Mika Havela committed
15
subpackages="$pkgname-doc $pkgname-dev"
16
source="http://fontconfig.org/release/${pkgname}-${pkgver}.tar.gz"
Mika Havela's avatar
Mika Havela committed
17

18 19 20 21 22 23 24 25 26 27 28
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

Mika Havela's avatar
Mika Havela committed
29
build() {
30
	cd "$_builddir"
Mika Havela's avatar
Mika Havela committed
31

32 33 34 35
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Mika Havela's avatar
Mika Havela committed
36
		--sysconfdir=/etc \
37 38
		--disable-docs \
		|| return 1
39
	make || return 1
40 41 42
}

package() {
43
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
44 45
	make -j1 DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
Mika Havela's avatar
Mika Havela committed
46 47 48 49

	install -m644 -D COPYING "$pkgdir"/usr/share/licenses/"${pkgname}"/COPYING
}

50 51 52
md5sums="7772133ecce109f805ad8a2c1cce1dc7  fontconfig-2.10.93.tar.gz"
sha256sums="381541e4d1a150dac46af1d9ad64bdc3a131d6b2707d192209b2ed26e3e64147  fontconfig-2.10.93.tar.gz"
sha512sums="8baccbf38da4208307358c9474b060d56b68df3e9d35f2e20358766c68cedfb3c5a2a5f8dc113231bff492f8ff20c2d45c5af112207816d31d31ff414403c183  fontconfig-2.10.93.tar.gz"