summaryrefslogtreecommitdiff
path: root/extra/python-pyspi/PKGBUILD
blob: 739f3b08a4731a08d9a059c807927d5efcb710b7 (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
# $Id: PKGBUILD 151344 2012-02-25 14:53:09Z pierre $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=python-pyspi
pkgver=0.6.1
pkgrel=5
pkgdesc="Python AT-SPI bindings"
arch=('i686' 'x86_64')
url="http://people.redhat.com/zcerza/dogtail"
license=('LGPL')
depends=('python2' 'at-spi')
makedepends=('pyrex')
conflicts=('pyspi')
provides=('pyspi')
replaces=('pyspi')
source=("http://dlc.sun.com/osol/jds/downloads/sources/pyspi-${pkgver}.tar.gz"
        'pyspi-build.patch')
md5sums=('def336bd566ea688a06ec03db7ccf1f4'
         '721f74cbae653a258c00b83acf7dd1da')

build() {
  cd ${srcdir}/pyspi-${pkgver}
  patch -Np1 -i ${srcdir}/pyspi-build.patch
  # Pyrex tells us to use __cinit__ instead of __new__
  sed -i 's/__new__/__cinit__/' pyspi.pyx
  python2 setup.py install --root=${pkgdir}
}