desktop/bullet/PKGBUILD
2012-03-17 03:07:35 +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.80
_pkgver=$pkgver-rev2531
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=('d1eec0332110264a21d0fc0f2fb127c3'
'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
}