1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Maintainer: Jan de Groot <jgc@archlinux.org>
8 pkgdesc="Library for configuring and customizing font access"
9 url=https://www.freedesktop.org/wiki/Software/fontconfig/
12 depends=(libexpat.so libfreetype.so)
13 makedepends=(git meson gperf expat freetype2
14 docbook-utils docbook-sgml perl-sgmls)
15 provides=(libfontconfig.so fontconfig-docs)
16 conflicts=(fontconfig-docs)
17 replaces=('fontconfig-docs<2:2.13.93-1')
18 install=fontconfig.install
19 backup=(etc/fonts/fonts.conf)
21 _commit=911b19f19f1334d51c452756f9ce222c1101097b # tags/2.14.0^0
22 source=("git+https://gitlab.freedesktop.org/fontconfig/fontconfig.git#commit=$_commit"
23 40-fontconfig-config.script
24 40-fontconfig-config.hook
27 '7fb63e76ab126bc0a7decfd74c53429ad1ce6d13de2f14037259616d8d4150b8fa4601c7f02b75918ccd5995d424816dc9d01a5fe7e39dc3dd1fcc83dfdb0fe8'
28 'b06b3f2b8c0c38139a9247c26a641e6dc01d50b530478dd14133175a603f60b0af901af16c9fcf1ce73d23786ea14bfdbacd39f1dcfd88f6382965ad22be1411'
29 'dfbf47c069c88da7687511356cef5bb94b7190e558a6f08390d6976fa7065ba7137ccb0a5ca1defdef655091afe74eb8a3d33fb9f3e0633409aa79f753ad276d')
37 git describe --tags | sed 's/-/+/g'
41 arch-meson fontconfig build \
45 meson compile -C build
49 meson test -C build --print-errorlogs
53 meson install -C build --destdir "$pkgdir"
55 # Handle conf.d using the hook to avoid overwriting the symlinks on upgrade
56 mkdir -p "$pkgdir/usr/share/fontconfig/conf.default"
57 for _f in "$pkgdir"/etc/fonts/conf.d/*.conf; do
58 ln -sr "$pkgdir"/usr/share/fontconfig/conf.{avail,default}/"${_f##*/}"
62 install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
63 install -D 40-fontconfig-config.script \
64 "$pkgdir/usr/share/libalpm/scripts/40-fontconfig-config"
65 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 fontconfig/COPYING