summaryrefslogtreecommitdiff
path: root/community/box2d/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/box2d/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/box2d/PKGBUILD')
-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..661d4b240
--- /dev/null
+++ b/community/box2d/PKGBUILD
@@ -0,0 +1,44 @@
+# $Id: PKGBUILD 31825 2010-11-06 13:26:28Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+
+pkgname=box2d
+pkgver=2.1.2
+pkgrel=3
+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=('59d142cd8d4d73e8832c7b67591f590c')
+
+build() {
+ cd ${srcdir}/Box2D_v${pkgver}/Box2D/
+
+ 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}/Box2D/build
+
+ make DESTDIR=${pkgdir} install
+
+ mkdir -p ${pkgdir}/usr/share/doc/box2d/
+ cp -r ${srcdir}/Box2D_v${pkgver}/Box2D/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}/Box2D/License.txt ${pkgdir}/usr/share/licenses/box2d/LICENSE
+}
+# vim: sw=2 ts=2 et: