updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / python-yarp / PKGBUILD
blobf2e4659825075079e5107f6087d0f30274730aa7
1 # Contributor: Victor Noël
3 _realpkgname=yarp
4 pkgname=python-$_realpkgname
5 pkgver=2.3.14
6 pkgrel=1
7 pkgdesc="Yet Another Robot Platform"
8 url="http://eris.liralab.it/yarp/"
9 license=('GPL')
10 arch=('i686' 'x86_64')
11 makedepends=('cmake' 'swig')
12 depends=('yarp' 'python' 'gcc-libs')
13 options=(!libtool)
14 source=(http://downloads.sourceforge.net/yarp0/$_realpkgname-$pkgver.tar.gz yarp-swig-python3.patch)
16 build() {
17   cd $srcdir/$_realpkgname-$pkgver/example/swig
19   # -DSWIG_MODULE_python_EXTRA_FLAGS=-py3 does not do anything apparently... so we gruikly patch
20   patch -N -p1 < $srcdir/yarp-swig-python3.patch
22   cd $srcdir
24   rm -rf build-$pkgname-$pkgver
25   mkdir build-$pkgname-$pkgver
26   cd build-$pkgname-$pkgver
28   cmake ../$_realpkgname-$pkgver/example/swig/ -DPYTHON_EXECUTABLE=/usr/bin/python -DPYTHON_LIBRARY=/usr/lib/libpython3.so -DCMAKE_INSTALL_PREFIX=/usr -DCREATE_PYTHON=TRUE
29   make
32 package() {
33   cd $srcdir/build-$pkgname-$pkgver
35   make DESTDIR=$pkgdir install
38 md5sums=('4ee659e31abe915e3453062f994aabd7'
39          '50a0e9427d6739ef08c1b52db3be7596')