# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=harfbuzz pkgver=1.4.6 pkgrel=1 pkgdesc="Text shaping library" url="http://freedesktop.org/wiki/Software/HarfBuzz" arch="all" license="MIT" depends="" makedepends="freetype-dev glib-dev cairo-dev icu-dev graphite2-dev" subpackages="$pkgname-dev $pkgname-icu" source="http://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 \ --disable-static \ --with-graphite2 \ || return 1 make || return 1 } package() { make DESTDIR="$pkgdir" \ -C "$builddir" install || return 1 } 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="aade3902adadf3a8339ba1d05279e639da7cb53981adc64e2a2d32a5d49335a6a9782a62cdf80beca569ec8a639792bf0368c0b6ecad08f35bc85878678aa096 harfbuzz-1.4.6.tar.bz2"