summaryrefslogtreecommitdiff
path: root/extra/python2-cairo/PKGBUILD
blob: 4232ae832991ca5ddfda3064573c8c623327afd0 (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: PKGBUILD 198386 2013-10-30 14:33:23Z allan $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=python2-cairo
pkgver=1.10.0
pkgrel=1.1
pkgdesc="Python2 bindings for the cairo graphics library"
arch=('i686' 'x86_64' 'mips64el')
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}"
}