updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / pycairo-xcb-git / PKGBUILD
blob951e5f38983c34ef503636a1639472e32912099d
1 # Maintainer: dx <dx@dxzone.com.ar>
3 pkgname=pycairo-xcb-git
4 pkgver=20110418
5 pkgrel=1
6 pkgdesc="Python bindings for the cairo graphics library with XCB enabled (git version)"
7 arch=(i686 x86_64)
8 license=('LGPL' 'MPL')
9 depends=('python2' 'cairo-xcb' 'xpyb-git')
10 options=('!libtool')
11 url="http://www.cairographics.org/"
12 provides=('python2-cairo=1.8.10' 'pycairo' 'pycairo-git' 'pycairo-xcb')
13 makedepends=('git' 'xpyb-git')
14 conflicts=('python2-cairo' 'pycairo' 'pycairo-git' 'pycairo-xcb')
15 _gitroot='git://git.cairographics.org/git/'
16 _gitname='py2cairo'
18 build() {
19   export PYTHON=/usr/bin/python2
21   if [ -d ${srcdir}/$_gitname ]; then
22     cd $srcdir/$_gitname
23     git pull
24   else
25     cd $srcdir
26     git clone $_gitroot$_gitname
27     cd $_gitname
28   fi
30   cd "${srcdir}/$_gitname"
31   ./autogen.sh --enable-xcb --prefix=/usr
32   make
35 package(){
36   cd "${srcdir}/${_gitname}"
37   make DESTDIR="${pkgdir}" install