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=4584bcdc326564829d3cee3572386c90e4fd1974 # tags/7.3.0^0
37 source=("git+https://github.com/harfbuzz/harfbuzz#commit=$_commit")
42 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
54 # Harfbuzz wants no exceptions
55 CFLAGS="${CFLAGS/-fexceptions/}"
56 CXXFLAGS="${CXXFLAGS/-fexceptions/}"
58 arch-meson harfbuzz build "${meson_options[@]}"
59 meson compile -C build
64 TMPDIR="$PWD/tmp" meson test -C build --print-errorlogs
69 local p="$1" f d; shift
71 d="$srcdir/$p/${f#$pkgdir/}"
72 mkdir -p "$(dirname "$d")"
74 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
85 optdepends=('harfbuzz-utils: utilities')
86 provides=(libharfbuzz{,-subset,-gobject}.so)
88 meson install -C build --destdir "$pkgdir"
92 _pick hb-cairo usr/lib/libharfbuzz-cairo*
93 _pick hb-cairo usr/lib/pkgconfig/harfbuzz-cairo.pc
94 _pick hb-cairo usr/include/harfbuzz/hb-cairo.h
96 _pick hb-icu usr/lib/libharfbuzz-icu*
97 _pick hb-icu usr/lib/pkgconfig/harfbuzz-icu.pc
98 _pick hb-icu usr/include/harfbuzz/hb-icu.h
100 _pick hb-utils usr/bin
102 _pick hb-docs usr/share/gtk-doc
105 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
108 package_harfbuzz-cairo() {
109 pkgdesc+=" - Cairo integration"
114 provides=(libharfbuzz-cairo.so)
116 mv hb-cairo/* "$pkgdir"
118 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
121 package_harfbuzz-icu() {
122 pkgdesc+=" - ICU integration"
127 provides=(libharfbuzz-icu.so)
129 mv hb-icu/* "$pkgdir"
131 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
134 package_harfbuzz-utils() {
135 pkgdesc+=" - Utilities"
145 libharfbuzz-gobject.so
146 libharfbuzz-subset.so
150 mv hb-utils/* "$pkgdir"
152 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
155 package_harfbuzz-docs() {
156 pkgdesc+=" - Documentation"
159 mv hb-docs/* "$pkgdir"
161 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
164 # vim:set sw=2 sts=-1 et: