# $Id: PKGBUILD 55250 2009-10-12 16:05:23Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libxfontcache
pkgver=1.0.5
pkgrel=2
pkgdesc="X11 font cache library"
arch=('i686' 'x86_64')
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('libxext' 'fontcacheproto')
makedepends=('pkgconfig')
options=('!libtool')
source=(${url}/releases/individual/lib/libXfontcache-${pkgver}.tar.bz2 LICENSE)

build() {
  cd ${srcdir}/libXfontcache-${pkgver}
  ./configure --prefix=/usr --sysconfdir=/etc --disable-static \
              --build=${CHOST} --host=${CHOST}
  make || return 1
}
package() {
  cd ${srcdir}/libXfontcache-${pkgver}
  make DESTDIR=${pkgdir} install || return 1
  install -D -m644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
md5sums=('bbd37768c87f63cf2eb845b2c0f56515'
         '9738fb66a1a69ce086c461d5bedc7d8f')