summaryrefslogtreecommitdiff
path: root/community/box2d/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/box2d/PKGBUILD')
-rw-r--r--community/box2d/PKGBUILD31
1 files changed, 16 insertions, 15 deletions
diff --git a/community/box2d/PKGBUILD b/community/box2d/PKGBUILD
index 6aadfb8d3..15030c6c3 100644
--- a/community/box2d/PKGBUILD
+++ b/community/box2d/PKGBUILD
@@ -1,44 +1,45 @@
-# $Id: PKGBUILD 64742 2012-02-18 03:45:38Z svenstaro $
+# $Id: PKGBUILD 100620 2013-11-06 13:54:05Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=box2d
-pkgver=2.2.1
-pkgrel=2
+pkgver=2.3.0
+pkgrel=1
pkgdesc="2D rigid body simulation library for games"
url="http://www.box2d.org/"
license=('zlib')
arch=('i686' 'x86_64')
#depends=('freeglut')
-makedepends=('cmake')
+makedepends=('cmake' 'doxygen')
optdepends=()
-source=(http://box2d.googlecode.com/files/Box2D_v${pkgver}.zip)
-md5sums=('9e9d32a34fb5554c47f0f9cade0fa611')
+source=(svn+http://box2d.googlecode.com/svn/tags/v${pkgver})
+md5sums=('SKIP')
build() {
- cd ${srcdir}/Box2D_v${pkgver}
+ cd ${srcdir}/v${pkgver}/Box2D
msg "Starting build"
[[ -d build ]] && rm -r build
mkdir build && cd build
cmake .. \
-DBOX2D_INSTALL=ON \
+ -DBOX2D_INSTALL_DOC=ON \
-DBOX2D_BUILD_SHARED=ON \
- -DBOX2D_BUILD_STATIC=ON \
+ -DBOX2D_BUILD_STATIC=OFF \
-DBOX2D_BUILD_EXAMPLES=OFF \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
- cd ${srcdir}/Box2D_v${pkgver}/build
+ cd ${srcdir}/v${pkgver}/Box2D
- make DESTDIR=${pkgdir} install
+ cd Documentation
+ doxygen
+
+ cd ../build
- 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
+ make DESTDIR=${pkgdir} install
- install -Dm644 ${srcdir}/Box2D_v${pkgver}/License.txt ${pkgdir}/usr/share/licenses/box2d/LICENSE
+ install -Dm644 ${srcdir}/v${pkgver}/Box2D/License.txt ${pkgdir}/usr/share/licenses/box2d/LICENSE
}
# vim: sw=2 ts=2 et: