summaryrefslogtreecommitdiff
path: root/extra/python-cairo/PKGBUILD
blob: 116763cc86f244e2730c7ada95f150ec31f35d74 (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
32
33
34
35
36
37
38
39
40
41
42
# $Id: PKGBUILD 121116 2011-04-29 03:02:02Z angvp $
# Maintainer: Angel Velasquez <angvp@archlinux.org>  
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=python-cairo
pkgver=1.10.0
pkgrel=1
pkgdesc="Python bindings for the cairo graphics library"
arch=('i686' 'x86_64' 'mips64el')
license=('LGPL3')
depends=('python' 'cairo')
makedepends=('pkg-config')
options=('!libtool')
source=(http://cairographics.org/releases/pycairo-${pkgver}.tar.bz2)
url="http://www.cairographics.org/pycairo"
md5sums=('e6fd3f2f1e6a72e0db0868c4985669c5')

build() {
  cd "${srcdir}/pycairo-${pkgver}"

  # We patch the embedded copy of waf to fix compiling against python 3.2
  # (due to PEP-3149), by using the appropriate python-config tool, rather
  # than trying to find the libraries by directly using PYTHON_VERSION

  # Ensure that ./waf has created the cached unpacked version
  # of the wafadmin source tree.
  # This will be created to a subdirectory like
  #    .waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752
  python ./waf --version

  # Patch the unpacked version of waf:
  pushd .waf3*
  popd

  ./waf configure --prefix=/usr
  ./waf build
}

package() {
  cd "${srcdir}/pycairo-${pkgver}"
  ./waf install --destdir="${pkgdir}"
}