updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / py3cairo / PKGBUILD
blob66d4de0fd1bc0c553040af85f21f8d4a2fcb9a5e
1 # Maintainer: myswiat <my.swiat@o2.pl>
3 pkgname=py3cairo
4 pkgver=20110705
5 pkgrel=1
6 pkgdesc="Python bindings for the cairo graphics library"
7 arch=(i686 x86_64)
8 license=('LGPL' 'MPL')
9 depends=('python' 'cairo')
10 options=('!libtool')
11 url="http://www.cairographics.org/"
12 provides=('pygobject-git-mys')
13 makedepends=('git')
14 conflicts=('pycairo-git' 'python2-cairo')
15 _gitroot='git://git.cairographics.org/git/'
16 _gitname='pycairo'
18 build() {
19   export PYTHON=/usr/bin/python
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   python3 ./waf configure --prefix=/usr
32   python3 ./waf build
33   python3 ./waf install