# Maintainer: Future Linux Team pkgname=fontconfig pkgver=2.15.0 pkgrel=2 pkgdesc="Library for configuring and customizing font access" arch=('x86_64') url="https://www.freedesktop.org/wiki/Software/fontconfig/" license=('custom') depends=('expat' 'freetype2') makedepends=('gperf') backup=(etc/fonts/fonts.con) source=(https://www.freedesktop.org/software/fontconfig/release/${pkgname}-${pkgver}.tar.xz) sha256sums=(63a0658d0e06e0fa886106452b58ef04f21f58202ea02a94c39de0d3335d7c0e) build() { cd ${pkgname}-${pkgver} ${CONFIGURE} \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-docs \ --docdir=/usr/share/doc/${pkgname}-${pkgver} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -vdm755 ${pkgdir}/usr/share/{man/man{1,3,5},doc/${pkgname}-${pkgver}/fontconfig-devel} install -v -m644 fc-*/*.1 ${pkgdir}/usr/share/man/man1 install -v -m644 doc/*.3 ${pkgdir}/usr/share/man/man3 install -v -m644 doc/fonts-conf.5 ${pkgdir}/usr/share/man/man5 install -v -m644 doc/fontconfig-devel/* ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/fontconfig-devel install -v -m644 doc/*.{pdf,sgml,txt,html} ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} }