From 32db819a4e66d26b67fc2c3fa05e11aa5928ed0a Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sun, 17 Nov 2024 17:27:18 +0800 Subject: [PATCH] fontconfig 2.15.0-2 --- PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..0b28ac1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# 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} +}