APKBUILD 1.38 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.11.1
5
pkgrel=3
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="freetype-dev expat-dev"
12
makedepends="$depends_dev zlib-dev"
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 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
		--localstatedir=/var \
38 39
		--disable-docs \
		|| return 1
40
	make || return 1
41 42 43
}

package() {
44
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
45
	make -j1 DESTDIR="$pkgdir" install || return 1
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 52
md5sums="e75e303b4f7756c2b16203a57ac87eba  fontconfig-2.11.1.tar.gz"
sha256sums="b6b066c7dce3f436fdc0dfbae9d36122b38094f4f53bd8dffd45e195b0540d8d  fontconfig-2.11.1.tar.gz"
sha512sums="a3eecb35a59c2f83e7fec1238ff288978643a1b2a2a7bff7b07bb62b2ccd48aa7a6b5b164472f019efd390e9eea5391313c070dcbd680a2e1227ea8ec125e28b  fontconfig-2.11.1.tar.gz"