summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 192d77caf487e79634bb381ee10eb4f40c576d93 (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
# Maintainer: Benjamin Chretien <chretien at lirmm dot fr>
# Contributor: Sebastien Binet <binet@lblbox>
pkgname=python2-pybindgen
pkgver=0.17.0
pkgrel=2
pkgdesc="A tool to generate Python bindings for C/C++ code"
url="http://pypi.python.org/pypi/PyBindGen"
arch=('i686' 'x86_64')
license=('LGPL')
depends=('python2' 'pygccxml')
makedepends=('waf')
provides=('python2-pybindgen')
conflicts=('python2-pybindgen-bzr')
source=("https://pypi.python.org/packages/source/P/PyBindGen/PyBindGen-${pkgver}.tar.gz"
        "PyLong.patch")
md5sums=('7d8fe2b3b4646c3c1d9e5342b1645f6a'
         '60f5b1d02262c74aabbf2d00c8bf15cd')

build() {
  cd ${srcdir}/PyBindGen-$pkgver

  # Patch for __len__g
  # cf. https://bugs.launchpad.net/pybindgen/+bug/1443379
  patch -p1 < "${srcdir}/PyLong.patch"

  PYTHON=python2 ./waf configure --prefix=/usr
  PYTHON=python2 ./waf
}

#check() {
#  cd ${srcdir}/PyBindGen-$pkgver
#  PYTHON=python2 ./waf check
#}

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