# Maintainer: Natanael Copa pkgname=harfbuzz pkgver=1.0.1 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 graphite2-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" 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 \ --with-graphite2 \ || 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="b9c144965dfde96672a7c6bdd4f9bf64 harfbuzz-1.0.1.tar.bz2" sha256sums="32a1a7ad584a2f2cfba5c1d234d046c0521e86e7a21d403e15e89aa509ef0ea8 harfbuzz-1.0.1.tar.bz2" sha512sums="6de8d38c64772687701789d38001327a20c225e08d77bd4bb919c61613172e9cb57dd6f4dd5cedcaaad6db8228d91546d8a395dcc21033107496d0a37ded0291 harfbuzz-1.0.1.tar.bz2"