desktop/bullet/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) ddec855038 Bullet 2.79.
2011-10-09 20:26:28 +00:00

62 lines
1.6 KiB
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=bullet
pkgver=2.79
_pkgver=$pkgver-rev2440
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=('29d6f43964d8494f0366cd69e4883dd1'
'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
}