desktop/bullet/PKGBUILD

48 lines
1.4 KiB
Bash
Raw Normal View History

pkgbase=bullet
_pkgbase=bullet3
pkgname=('bullet' 'bullet-doc')
2016-05-14 21:09:42 +08:00
pkgver=2.83.7
pkgrel=2
2011-10-10 04:26:28 +08:00
pkgdesc="A 3D Collision Detection and Rigid Body Dynamics Library for games and animation"
2016-05-14 21:09:42 +08:00
arch=('x86_64')
2011-02-23 05:39:01 +08:00
url="http://www.bulletphysics.com/Bullet/"
license=('ZLIB')
2016-05-14 21:09:42 +08:00
makedepends=('cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa' 'glu')
source=("https://github.com/bulletphysics/$_pkgbase/archive/$pkgver.tar.gz")
2016-05-14 21:09:42 +08:00
md5sums=('39fd0138fcb59047c12861f3b65c063e')
2011-02-23 05:39:01 +08:00
build() {
cd $_pkgbase-$pkgver
2011-02-23 05:39:01 +08:00
[[ -d build ]] && rm -rf build
mkdir build && cd build
2011-02-23 05:39:01 +08:00
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
2016-05-14 21:09:42 +08:00
-DBUILD_SHARED_LIBS=1 \
-DINSTALL_LIBS=1 \
-DINSTALL_EXTRA_LIBS=1 \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
2011-02-23 05:39:01 +08:00
make
cd ..
doxygen
}
package_bullet() {
cd $_pkgbase-$pkgver/build
2011-02-23 05:39:01 +08:00
make DESTDIR=$pkgdir install
install -Dm644 ../LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
2011-02-23 05:39:01 +08:00
package_bullet-doc() {
pkgdesc="Documentation for bullet (includes examples and the example browser)"
depends=(glu)
cd $_pkgbase-$pkgver/build
install -Dm755 examples/ExampleBrowser/App_ExampleBrowser ${pkgdir}/usr/bin/bullet_examplebrowser
mkdir -p $pkgdir/usr/lib
find examples/ -name '*.so' -exec cp {} $pkgdir/usr/lib/ \;
mkdir -p $pkgdir/usr/share/doc/$pkgbase/
cp ../docs/*.pdf $pkgdir/usr/share/doc/$pkgbase/
cp -r ../html ${pkgdir}/usr/share/doc/bullet/html
install -Dm644 ../LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
2011-02-23 05:39:01 +08:00
}