# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=harfbuzz pkgver=1.2.3 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 \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-static \ --with-graphite2 \ || return 1 make } package() { cd "$_builddir" make install DESTDIR="$pkgdir" || 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/ } md5sums="da8d97e262e6ef8288e1ae76369421bd harfbuzz-1.2.3.tar.bz2" sha256sums="8216d2404aaab7fde87be0365a90d64aa6c55928e104557cfcb37b54a096cb8c harfbuzz-1.2.3.tar.bz2" sha512sums="9df730dd07f726150252e6c1db1b9f49182492d9b0443388aa3bb102482749cb3299079dde8f83430e7947633ccf8d21bc41a95f02ba497bfd8195e702d3b031 harfbuzz-1.2.3.tar.bz2"