# Contributor: Mika Havela # Maintainer: Natanael Copa pkgname=fontconfig pkgver=2.12.0 pkgrel=0 pkgdesc="The Fontconfig package is a library for configuring and customizing font access." url="http://fontconfig.org" arch="all" license="GPL" depends= depends_dev="" makedepends="$depends_dev freetype-dev expat-dev python-dev" install= triggers="$pkgname.trigger=/usr/share/fonts/*" subpackages="$pkgname-doc $pkgname-dev" source="http://fontconfig.org/release/${pkgname}-${pkgver}.tar.gz" _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 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-docs \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 install -m644 -D COPYING "$pkgdir"/usr/share/licenses/"${pkgname}"/COPYING } md5sums="d8b056231abcb6257db6dc6d745360b2 fontconfig-2.12.0.tar.gz" sha256sums="fb10dee06097d8bc6c548ecfaaad5edd6db2d7805e0c9d783692c0a23e8b702d fontconfig-2.12.0.tar.gz" sha512sums="1a1db09ed15d18b820546aec4813e2eaed100782f5ab05b73c0896e6fff700bd2e212e6a0142a65613179ee22b44516f3d7fdc979e1fa9ad74e9e7717d165a0c fontconfig-2.12.0.tar.gz"