# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=harfbuzz pkgver=2.6.4 pkgrel=0 pkgdesc="Text shaping library" url="https://freedesktop.org/wiki/Software/HarfBuzz" arch="all" license="MIT" # 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 $pkgname-doc" source="https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-$pkgver.tar.xz" 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-freetype 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="d8664bb64fda11ff7646693070637e3827f8b3d1de50e11ecf108ce4d19c878b26b2ba4cff278da6e6cc0cb431e1630d9eaa7c32a9bebb9655a7aa8dabf7114f harfbuzz-2.6.4.tar.xz"