summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python2-cairo/PKGBUILD
blob: 574eca2366b79e5b31f58d1cf7199d39a78c272a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id$
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=python2-cairo
pkgver=1.10.0
pkgrel=3
pkgdesc="Python2 bindings for the cairo graphics library"
arch=('i686' 'x86_64')
license=('LGPL' 'MPL')
depends=('python2' 'cairo')
provides=("pycairo=${pkgver}")
conflicts=('pycairo')
replaces=('pycairo')
source=(http://cairographics.org/releases/py2cairo-${pkgver}.tar.bz2)
url="http://www.cairographics.org/pycairo"
md5sums=('20337132c4ab06c1146ad384d55372c5')

build() {
  cd "${srcdir}/py2cairo-${pkgver}"
  sed -i 's:bin/env python:bin/env python2:' waf
  python2 ./waf --version
  pushd .waf-*
  popd
  PYTHON=/usr/bin/python2 ./waf configure --prefix=/usr
  PYTHON=/usr/bin/python2 ./waf build
}

package() {
  cd "${srcdir}/py2cairo-${pkgver}"
  PYTHON=/usr/bin/python2 ./waf install --destdir="${pkgdir}"
}