diff options
author | Danct12 <danct12@disroot.org> | 2019-05-28 01:01:58 +0700 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-05-28 05:07:08 +0000 |
commit | 351e1724839d43454741cd2588f2e50830b3d4b9 (patch) | |
tree | 984b3927922eff0de21fa956476102608b92cbf0 /testing/bullet | |
parent | 0afe8a408cfaa1b38ad0ab066026f5e57f48f4b4 (diff) | |
download | aports-351e1724839d43454741cd2588f2e50830b3d4b9.tar.bz2 aports-351e1724839d43454741cd2588f2e50830b3d4b9.tar.xz |
testing/bullet: new aport
Closes GH-8179
Diffstat (limited to 'testing/bullet')
-rw-r--r-- | testing/bullet/APKBUILD | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/testing/bullet/APKBUILD b/testing/bullet/APKBUILD new file mode 100644 index 0000000000..81bd0c61cf --- /dev/null +++ b/testing/bullet/APKBUILD @@ -0,0 +1,63 @@ +# Contributor: Danct12 <danct12@disroot.org> +# Contributor: Asriel Dreemurr <asriel.danctnix@gmail.com> +# Maintainer: Danct12 <danct12@disroot.org> +pkgname=bullet +pkgver=2.88 +pkgrel=0 +pkgdesc="A 3D Collision Detection and Rigid Body Dynamics Library for games and animation" +url="https://pybullet.org/Bullet/phpBB3/" +arch="all" +license="Zlib" +makedepends="cmake doxygen graphviz-dev ttf-dejavu mesa-dev glu-dev python3-dev py-numpy-dev" +options="!check" # cannot build tests +subpackages="$pkgname-dev $pkgname-doc" +source="bullet3-$pkgver.tar.gz::https://github.com/bulletphysics/bullet3/archive/$pkgver.tar.gz" +builddir="$srcdir/bullet3-$pkgver" + +prepare() { + default_prepare + mkdir "$builddir"/build +} + +build() { + cd "$builddir"/build + + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_SHARED_LIBS=1 \ + -DBUILD_BULLET2_DEMOS=0 \ + -DBUILD_CPU_DEMOS=0 \ + -DINSTALL_LIBS=1 \ + -DINSTALL_EXTRA_LIBS=1 \ + -DBUILD_PYBULLET=ON \ + -DBUILD_PYBULLET_NUMPY=ON \ + -DBUILD_OPENGL3_DEMOS=0 \ + -DBUILD_UNIT_TESTS=0 \ + -DCMAKE_BUILD_TYPE=Release + + make + + cd .. + doxygen +} + +package() { + cd "$builddir"/build + make -j1 DESTDIR="$pkgdir" install # avoid libtool errors + + # Install LICENSE + install -Dm644 ../LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE +} + +doc() { + default_doc + + # install docs + install -Dm644 "$builddir"/docs/GPU_rigidbody_using_OpenCL.pdf $subpkgdir/usr/share/doc/bullet/GPU_rigidbody_using_OpenCL.pdf + install -Dm644 "$builddir"/docs/Bullet_User_Manual.pdf $subpkgdir/usr/share/doc/bullet/Bullet_User_Manual.pdf + install -Dm644 "$builddir"/docs/BulletQuickstart.pdf $subpkgdir/usr/share/doc/bullet/BulletQuickstart.pdf + cp -r "$builddir"/html $subpkgdir/usr/share/doc/bullet/html +} + + +sha512sums="15face1940d496c96fd19a44139d11d2cbb629526c40432be4a0eef5fa9a532c842ec7318248c0359a080f2034111bf1a3c2d3a6fd789bec675bd368fac7bd93 bullet3-2.88.tar.gz" |