1 # Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
2 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
5 pkgname=('bullet' 'bullet-docs' 'python-pybullet')
8 pkgdesc="A 3D Collision Detection and Rigid Body Dynamics Library for games and animation"
10 url="http://www.bulletphysics.com/Bullet/"
11 license=('custom:zlib')
12 makedepends=('cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa' 'glu' 'python' 'python-numpy' 'python-setuptools' 'ninja')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/bulletphysics/bullet3/archive/${pkgver}.tar.gz"
14 bullet3_examplebrowser.sh)
15 sha512sums=('a5105bf5f1dd365a64a350755c7d2c97942f74897a18dcdb3651e6732fd55cc1030a096f5808cf50575281f05e3ac09aa50a48d271a47b94cd61f5167a72b7cc'
16 '8741ad94b6c46c226d89aebc8ab06d8a11bac3c04d3f0a2bf7a7524792a3375aa7bf7d295410b16fbeb4c348a31057b4570acdebe9bbaea251f44daca8d9fe81')
20 sed -i '/SET_TARGET_PROPERTIES(pybullet PROPERTIES PREFIX/d' examples/pybullet/CMakeLists.txt
29 -DCMAKE_INSTALL_PREFIX=/usr \
30 -DBUILD_SHARED_LIBS=1 \
32 -DINSTALL_EXTRA_LIBS=1 \
34 -DBUILD_PYBULLET_NUMPY=ON \
35 -DBUILD_OPENGL3_DEMOS=ON \
36 -DCMAKE_BUILD_TYPE=Release \
37 -DCMAKE_SKIP_RPATH=YES
46 optdepends=('glu: for the example browser'
47 'python: python bindings'
48 'python-numpy: python bindings'
49 'bullet-docs: documentation')
53 DESTDIR="${pkgdir}" ninja -C build install
57 install -Dm755 examples/ExampleBrowser/libBulletExampleBrowserLib.so.${pkgver} "${pkgdir}"/usr/lib/libBulletExampleBrowserLib.so.${pkgver}
58 install -Dm755 examples/OpenGLWindow/libOpenGLWindow.so "${pkgdir}"/usr/lib/libOpenGLWindow.so
59 install -Dm755 examples/ThirdPartyLibs/Gwen/libgwen.so "${pkgdir}"/usr/lib/libgwen.so
60 install -Dm755 examples/ThirdPartyLibs/BussIK/libBussIK.so "${pkgdir}"/usr/lib/libBussIK.so
61 install -Dm755 "${srcdir}"/bullet3_examplebrowser.sh "${pkgdir}"/usr/bin/bullet3_examplebrowser
62 install -Dm755 examples/ExampleBrowser/App_ExampleBrowser "${pkgdir}"/opt/bullet/App_ExampleBrowser
63 cp -r data "${pkgdir}"/opt/bullet/
65 install -Dm644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgbase}/LICENSE
68 package_python-pybullet() {
69 pkgdesc="Bullet Python bindings"
70 depends+=('bullet' 'gcc-libs')
74 install -Dm755 build/examples/pybullet/libpybullet.so.${pkgver} "${pkgdir}"/usr/lib/libpybullet.so.${pkgver}
75 python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
77 install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
80 package_bullet-docs() {
81 pkgdesc="Documentation for bullet"
86 install -Dm644 docs/GPU_rigidbody_using_OpenCL.pdf "${pkgdir}"/usr/share/doc/bullet/GPU_rigidbody_using_OpenCL.pdf
87 install -Dm644 docs/Bullet_User_Manual.pdf "${pkgdir}"/usr/share/doc/bullet/Bullet_User_Manual.pdf
88 install -Dm644 docs/BulletQuickstart.pdf "${pkgdir}"/usr/share/doc/bullet/BulletQuickstart.pdf
89 cp -r html "${pkgdir}"/usr/share/doc/bullet/html