1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
8 pkgdesc="Library for configuring and customizing font access"
9 url=https://www.freedesktop.org/wiki/Software/fontconfig/
24 provides=(fontconfig-docs)
25 conflicts=(fontconfig-docs)
26 replaces=('fontconfig-docs<2:2.13.93-1')
27 backup=(etc/fonts/fonts.conf)
28 install=fontconfig.install
29 _commit=7861a719616b4b132b9cac089c6c64f47832edb1 # tags/2.14.2^0
31 "git+https://gitlab.freedesktop.org/fontconfig/fontconfig.git#commit=$_commit"
32 40-fontconfig-config.script
33 40-fontconfig-config.hook
37 '7fb63e76ab126bc0a7decfd74c53429ad1ce6d13de2f14037259616d8d4150b8fa4601c7f02b75918ccd5995d424816dc9d01a5fe7e39dc3dd1fcc83dfdb0fe8'
38 'b06b3f2b8c0c38139a9247c26a641e6dc01d50b530478dd14133175a603f60b0af901af16c9fcf1ce73d23786ea14bfdbacd39f1dcfd88f6382965ad22be1411'
39 'dfbf47c069c88da7687511356cef5bb94b7190e558a6f08390d6976fa7065ba7137ccb0a5ca1defdef655091afe74eb8a3d33fb9f3e0633409aa79f753ad276d')
47 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
52 -D default-hinting=slight
53 -D default-sub-pixel-rendering=rgb
58 arch-meson fontconfig build "${meson_options[@]}"
59 meson compile -C build
63 meson test -C build --print-errorlogs
71 provides+=(libfontconfig.so)
73 meson install -C build --destdir "$pkgdir"
75 # Handle conf.d using the hook to avoid overwriting the symlinks on upgrade
76 mkdir -p "$pkgdir/usr/share/fontconfig/conf.default"
77 for _f in "$pkgdir"/etc/fonts/conf.d/*.conf; do
78 ln -sr "$pkgdir"/usr/share/fontconfig/conf.{avail,default}/"${_f##*/}"
82 install -Dm644 *.hook -t "$pkgdir/usr/share/libalpm/hooks"
83 install -D 40-fontconfig-config.script \
84 "$pkgdir/usr/share/libalpm/scripts/40-fontconfig-config"
85 install -Dm644 fontconfig/COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
88 # vim:set sw=2 sts=-1 et: