APKBUILD 951 Bytes
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.8.0
Natanael Copa's avatar
Natanael Copa committed
5
pkgrel=5
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 11
depends=
makedepends="pkgconfig freetype-dev expat-dev zlib-dev"
Mika Havela's avatar
Mika Havela committed
12
install=
13
triggers="$pkgname.trigger:/usr/share/fonts/*"
Mika Havela's avatar
Mika Havela committed
14 15
subpackages="$pkgname-doc $pkgname-dev"
source="http://fontconfig.org/release/${pkgname}-${pkgver}.tar.gz"
16
depends_dev="freetype-dev expat-dev"
Mika Havela's avatar
Mika Havela committed
17 18 19 20 21 22 23

build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--disable-docs
24
	make || return 1
25 26 27 28
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
Natanael Copa's avatar
Natanael Copa committed
29 30
	make -j1 DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
Mika Havela's avatar
Mika Havela committed
31 32 33 34

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

35
md5sums="77e15a92006ddc2adbb06f840d591c0e  fontconfig-2.8.0.tar.gz"