# $Id: PKGBUILD 216817 2014-07-11 18:35:27Z heftig $ # Maintainer: Jan de Groot pkgbase=(harfbuzz) pkgname=(harfbuzz harfbuzz-icu) pkgver=0.9.30 pkgrel=1 pkgdesc="OpenType text shaping engine" arch=(i686 x86_64) url="http://www.freedesktop.org/wiki/Software/HarfBuzz" license=(MIT) makedepends=(glib2 freetype2 graphite cairo icu gobject-introspection) source=(http://www.freedesktop.org/software/harfbuzz/release/${pkgbase}-${pkgver}.tar.bz2) sha256sums=('fa873f9fe4a5ad4f7beb524475e13a5a8729d7414d2bc64a557c0d5651d58586') build() { cd $pkgbase-$pkgver ./configure --prefix=/usr \ --with-glib --with-freetype --with-cairo --with-icu --with-graphite2 \ --with-gobject make } check() { cd $pkgbase-$pkgver make -k check || : } package_harfbuzz() { depends=(glib2 freetype2 graphite) optdepends=('cairo: hb-view program') cd $pkgbase-$pkgver make DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir/usr/share/licenses/harfbuzz/COPYING" # Split harfbuzz-icu mkdir -p ../hb-icu/usr/{include/harfbuzz,lib/pkgconfig}; cd ../hb-icu mv "$pkgdir"/usr/lib/libharfbuzz-icu* ./usr/lib mv "$pkgdir"/usr/lib/pkgconfig/harfbuzz-icu.pc ./usr/lib/pkgconfig mv "$pkgdir"/usr/include/harfbuzz/hb-icu.h ./usr/include/harfbuzz } package_harfbuzz-icu(){ pkgdesc="$pkgdesc (ICU integration)" depends=(harfbuzz icu) mv hb-icu/* "$pkgdir" install -Dm644 $pkgbase-$pkgver/COPYING "$pkgdir/usr/share/licenses/harfbuzz-icu/COPYING" }