# Maintainer: Natanael Copa pkgname=harfbuzz pkgver=0.9.23 pkgrel=0 pkgdesc="Text shaping library" url="http://freedesktop.org/wiki/Software/HarfBuzz" arch="all" license="MIT" depends="" depends_dev="" makedepends="$depends_dev freetype-dev glib-dev cairo-dev icu-dev" install="" subpackages="$pkgname-dev $pkgname-icu" source="http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-$pkgver.tar.bz2" _builddir="$srcdir"/harfbuzz-$pkgver prepare() { local i cd "$_builddir" update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-static \ || return 1 make } package() { cd "$_builddir" make install DESTDIR="$pkgdir" || return 1 rm "$pkgdir"/usr/lib/*.la } 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/ } md5sums="a4a9b548577e2ee22f0887937da5fd6c harfbuzz-0.9.23.tar.bz2" sha256sums="171ab7f58e7243082a4582f4d1f21b3f44462931ea92a6909d303ad3614794c7 harfbuzz-0.9.23.tar.bz2" sha512sums="b6ddc3e9401d0719757b54aa797cd3a5df58c0740998b95f4d73380cf1734d865099b95683774b393d372bd94fdece2dbee172a10242f36769dd848ec30ce558 harfbuzz-0.9.23.tar.bz2"