summaryrefslogtreecommitdiff
path: root/community/box2d
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/box2d
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/box2d')
-rw-r--r--community/box2d/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/community/box2d/PKGBUILD b/community/box2d/PKGBUILD
new file mode 100644
index 000000000..6aadfb8d3
--- /dev/null
+++ b/community/box2d/PKGBUILD
@@ -0,0 +1,44 @@
+# $Id: PKGBUILD 64742 2012-02-18 03:45:38Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+
+pkgname=box2d
+pkgver=2.2.1
+pkgrel=2
+pkgdesc="2D rigid body simulation library for games"
+url="http://www.box2d.org/"
+license=('zlib')
+arch=('i686' 'x86_64')
+#depends=('freeglut')
+makedepends=('cmake')
+optdepends=()
+source=(http://box2d.googlecode.com/files/Box2D_v${pkgver}.zip)
+md5sums=('9e9d32a34fb5554c47f0f9cade0fa611')
+
+build() {
+ cd ${srcdir}/Box2D_v${pkgver}
+
+ msg "Starting build"
+ [[ -d build ]] && rm -r build
+ mkdir build && cd build
+ cmake .. \
+ -DBOX2D_INSTALL=ON \
+ -DBOX2D_BUILD_SHARED=ON \
+ -DBOX2D_BUILD_STATIC=ON \
+ -DBOX2D_BUILD_EXAMPLES=OFF \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/Box2D_v${pkgver}/build
+
+ make DESTDIR=${pkgdir} install
+
+ mkdir -p ${pkgdir}/usr/share/doc/box2d/
+ cp -r ${srcdir}/Box2D_v${pkgver}/Documentation/* ${pkgdir}/usr/share/doc/box2d/
+ find ${pkgdir}/usr/share/doc/box2d/ -type f | xargs chmod 644
+ find ${pkgdir}/usr/share/doc/box2d/ -type d | xargs chmod 755
+
+ install -Dm644 ${srcdir}/Box2D_v${pkgver}/License.txt ${pkgdir}/usr/share/licenses/box2d/LICENSE
+}
+# vim: sw=2 ts=2 et: