# Description: An OpenType text shaping engine # URL: https://github.com/harfbuzz/harfbuzz # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu # Depends on: freetype-32 harfbuzz # Optional: cairo-32 chafa-32 graphite2-32 icu-32 name=harfbuzz-32 version=12.2.0 release=1 source=(https://github.com/harfbuzz/harfbuzz/releases/download/$version/${name%-*}-$version.tar.xz) build() { prt-get isinst cairo-32 || PKGMK_HARFBUZZ32+=' -D cairo=disabled' prt-get isinst chafa-32 || PKGMK_HARFBUZZ32+=' -D chafa=disabled' prt-get isinst graphite2-32 && PKGMK_HARFBUZZ32+=' -D graphite2=enabled' prt-get isinst icu-32 || PKGMK_HARFBUZZ32+=' -D icu=disabled' meson setup build ${name%-*}-$version $PKGMK_HARFBUZZ32 \ --prefix=/usr \ --libdir=/usr/lib32 \ -D benchmark=disabled \ -D docs=disabled \ -D introspection=disabled meson compile -C build -j ${JOBS:-1} DESTDIR=$PKG meson install -C build rm -rf $PKG/usr/{bin,include} }