# $Id: PKGBUILD 23420 2009-01-10 05:29:10Z allan $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=pycairo
pkgver=1.8.0
pkgrel=2
pkgdesc="Python bindings for the cairo graphics library"
arch=(i686 x86_64)
license=('LGPL' 'MPL')
depends=('python' 'cairo>=1.8.6')
options=('!libtool')
source=(http://cairographics.org/releases/${pkgname}-${pkgver}.tar.gz
        pycairo-1.8.0-threading.diff)
url="http://www.cairographics.org/"
md5sums=('847f5377c32228a656819f5bd18eb6b4'
         '5259928a3d58750d5c54af60d71f2493')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np1 -i "${srcdir}"/pycairo-1.8.0-threading.diff || return 1
  ./configure --prefix=/usr || return 1
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1
}