# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=harfbuzz pkgver=1.8.4 pkgrel=0 pkgdesc="Text shaping library" url="https://freedesktop.org/wiki/Software/HarfBuzz" arch="all" license="MIT" depends="" # tests depend on certain freetype behaviours options="!check" makedepends="freetype-dev glib-dev gobject-introspection-dev cairo-dev icu-dev graphite2-dev" checkdepends="python3" subpackages="$pkgname-static $pkgname-dev $pkgname-icu" source="https://www.freedesktop.org/software/$pkgname/release/$pkgname-$pkgver.tar.bz2" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-static \ --with-glib \ --with-gobject \ --with-graphite2 \ --with-icu \ --with-truetype make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } static() { pkgdesc="$pkgdesc (static libraries)" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/ } dev() { default_dev mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } icu() { pkgdesc="Harfbuzz ICU support library" replaces="harfbuzz" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/lib*icu.so.* "$subpkgdir"/usr/lib/ } sha512sums="8ec72b065b3f5d227b0af1486ab8019414bbdfaafce2f99d5a8bbf7d37a2709cadb545efcc46c5a5c44ce405966f01d8f3e8607f31907f8ed7ebe10150c9dcaf harfbuzz-1.8.4.tar.bz2"