1 # Contributor: Victor Noël
4 pkgname=python-$_realpkgname
7 pkgdesc="Yet Another Robot Platform"
8 url="http://eris.liralab.it/yarp/"
10 arch=('i686' 'x86_64')
11 makedepends=('cmake' 'swig')
12 depends=('yarp' 'python' 'gcc-libs')
14 source=(http://downloads.sourceforge.net/yarp0/$_realpkgname-$pkgver.tar.gz yarp-swig-python3.patch)
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
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
33 cd $srcdir/build-$pkgname-$pkgver
35 make DESTDIR=$pkgdir install
38 md5sums=('4ee659e31abe915e3453062f994aabd7'
39 '50a0e9427d6739ef08c1b52db3be7596')