# # Games Packages for Chakra, part of chakra-project.org # # Maintainer: Adrián Chaves Fernández (Gallaecio) pkgname=bullet pkgver=2.82 _pkgver=$pkgver-r2704 pkgrel=1 pkgdesc="A 3D Collision Detection and Rigid Body Dynamics Library for games and animation" arch=('i686' 'x86_64') url="http://www.bulletphysics.com/Bullet/" license=('ZLIB') depends=('freeglut') makedepends=('cmake' 'doxygen' 'graphviz' 'ttf-dejavu') changelog=ChangeLog source=("http://$pkgname.googlecode.com/files/$pkgname-$_pkgver.tgz" "$pkgname.pc") md5sums=('70b3c8d202dee91a0854b4cbc88173e8' 'd1da06deba3b08b884d2212f6838905c') build() { cd $srcdir/$pkgname-$_pkgver # Get a clean build directory. [[ -d build ]] && rm -rf build mkdir build && cd build # Generate CMake Makefile. cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=on \ -DBUILD_DEMOS=off \ -DBUILD_EXTRAS=off \ -DINSTALL_LIBS=on \ -DCMAKE_BUILD_TYPE=Release make # Generate documentation: cd .. sed -i 's/GENERATE_HTMLHELP.*//g' Doxyfile doxygen } package() { cd $srcdir/$pkgname-$_pkgver/build make DESTDIR=$pkgdir install # Manually handle pkgconfig file: mkdir -p $pkgdir/usr/lib/pkgconfig sed "s|VERSION|$pkgver|g" $srcdir/$pkgname.pc > $pkgdir/usr/lib/pkgconfig/$pkgname.pc # Documentation: install -Dm644 ../Bullet_User_Manual.pdf $pkgdir/usr/share/doc/$pkgname/Bullet_User_Manual.pdf cp -r ../html $pkgdir/usr/share/doc/$pkgname/html # License: install -Dm644 ../BulletLicense.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE }