1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
14 pkgdesc="OpenType text shaping engine"
15 url="https://www.freedesktop.org/wiki/Software/HarfBuzz"
36 _commit=a321c4fee56b15247c10f9aa3db7e7ccb3b8173b # tags/7.2.0^0
37 source=("git+https://github.com/harfbuzz/harfbuzz#commit=$_commit")
42 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
53 # Harfbuzz wants no exceptions
54 CFLAGS="${CFLAGS/-fexceptions/}"
55 CXXFLAGS="${CXXFLAGS/-fexceptions/}"
57 arch-meson harfbuzz build "${meson_options[@]}"
58 meson compile -C build
63 TMPDIR="$PWD/tmp" meson test -C build --print-errorlogs
68 local p="$1" f d; shift
70 d="$srcdir/$p/${f#$pkgdir/}"
71 mkdir -p "$(dirname "$d")"
73 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
84 optdepends=('harfbuzz-utils: utilities')
85 provides=(libharfbuzz{,-subset,-gobject}.so)
87 meson install -C build --destdir "$pkgdir"
91 _pick hb-cairo usr/lib/libharfbuzz-cairo*
92 _pick hb-cairo usr/lib/pkgconfig/harfbuzz-cairo.pc
93 _pick hb-cairo usr/include/harfbuzz/hb-cairo.h
95 _pick hb-icu usr/lib/libharfbuzz-icu*
96 _pick hb-icu usr/lib/pkgconfig/harfbuzz-icu.pc
97 _pick hb-icu usr/include/harfbuzz/hb-icu.h
99 _pick hb-utils usr/bin
101 _pick hb-docs usr/share/gtk-doc
104 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
107 package_harfbuzz-cairo() {
108 pkgdesc+=" - Cairo integration"
113 provides=(libharfbuzz-cairo.so)
115 mv hb-cairo/* "$pkgdir"
117 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
120 package_harfbuzz-icu() {
121 pkgdesc+=" - ICU integration"
126 provides=(libharfbuzz-icu.so)
128 mv hb-icu/* "$pkgdir"
130 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
133 package_harfbuzz-utils() {
134 pkgdesc+=" - Utilities"
144 libharfbuzz-gobject.so
145 libharfbuzz-subset.so
149 mv hb-utils/* "$pkgdir"
151 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
154 package_harfbuzz-docs() {
155 pkgdesc+=" - Documentation"
158 mv hb-docs/* "$pkgdir"
160 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
163 # vim:set sw=2 sts=-1 et: