desktop/bullet/PKGBUILD

62 lines
1.6 KiB
Bash
Raw Normal View History

2011-02-23 05:39:01 +08:00
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
2011-02-23 05:39:01 +08:00
pkgname=bullet
2014-02-01 09:42:09 +08:00
pkgver=2.82
_pkgver=$pkgver-r2704
2011-02-23 05:39:01 +08:00
pkgrel=1
2011-10-10 04:26:28 +08:00
pkgdesc="A 3D Collision Detection and Rigid Body Dynamics Library for games and animation"
2011-02-23 05:39:01 +08:00
arch=('i686' 'x86_64')
url="http://www.bulletphysics.com/Bullet/"
license=('ZLIB')
depends=('freeglut')
makedepends=('cmake' 'doxygen' 'graphviz' 'ttf-dejavu')
changelog=ChangeLog
2011-10-10 04:26:28 +08:00
source=("http://$pkgname.googlecode.com/files/$pkgname-$_pkgver.tgz"
2011-02-23 05:39:01 +08:00
"$pkgname.pc")
2014-02-01 09:42:09 +08:00
md5sums=('70b3c8d202dee91a0854b4cbc88173e8'
2011-02-23 05:39:01 +08:00
'd1da06deba3b08b884d2212f6838905c')
build() {
cd $srcdir/$pkgname-$_pkgver
2011-02-23 05:39:01 +08:00
# Get a clean build directory.
[[ -d build ]] && rm -rf build
mkdir build && cd build
# Generate CMake Makefile.
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
2011-10-10 04:26:28 +08:00
-DBUILD_SHARED_LIBS=on \
-DBUILD_DEMOS=off \
-DBUILD_EXTRAS=off \
-DINSTALL_LIBS=on \
-DCMAKE_BUILD_TYPE=Release
2011-02-23 05:39:01 +08:00
make
# Generate documentation:
cd ..
sed -i 's/GENERATE_HTMLHELP.*//g' Doxyfile
doxygen
}
package() {
cd $srcdir/$pkgname-$_pkgver/build
2011-02-23 05:39:01 +08:00
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
}