diff --git a/extra/bullet/PKGBUILD b/extra/bullet/PKGBUILD index 2fe119f64..0b61b5bf9 100644 --- a/extra/bullet/PKGBUILD +++ b/extra/bullet/PKGBUILD @@ -1,18 +1,18 @@ -# Maintainer: Sven-Hendrik Haase +# Maintainer: Sven-Hendrik Haase # Contributor: Christoph Zeiler # ALARM: Kevin Mihelich # - -DBUILD_BULLET2_DEMOS=OFF, -DBUILD_UNIT_TESTS=OFF pkgbase=bullet -pkgname=('bullet' 'bullet-docs') +pkgname=('bullet' 'bullet-docs' 'python-pybullet') pkgver=2.88 -pkgrel=2 +pkgrel=3 pkgdesc="A 3D Collision Detection and Rigid Body Dynamics Library for games and animation" arch=('x86_64') url="http://www.bulletphysics.com/Bullet/" license=('custom:zlib') -makedepends=('cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa' 'glu' 'python' 'python-numpy') +makedepends=('cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa' 'glu' 'python' 'python-numpy' 'python-setuptools') source=("https://github.com/bulletphysics/bullet3/archive/${pkgver}.tar.gz" bullet3_examplebrowser.sh) sha512sums=('15face1940d496c96fd19a44139d11d2cbb629526c40432be4a0eef5fa9a532c842ec7318248c0359a080f2034111bf1a3c2d3a6fd789bec675bd368fac7bd93' @@ -39,6 +39,7 @@ build() { make cd .. + python setup.py build doxygen } @@ -64,6 +65,15 @@ package_bullet() { install -Dm644 ../LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgbase}/LICENSE } +package_python-pybullet() { + pkgdesc="Bullet Python bindings" + depends+=('bullet') + + cd bullet3-${pkgver} + + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build +} + package_bullet-docs() { pkgdesc="Documentation for bullet"