updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / mingw32-box2d / PKGBUILD
blob958e02d6ba99c543bd22ee851a42b8b3eecd1646
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 pkgname=mingw32-box2d
3 pkgver=2.2.0
4 pkgrel=1
5 pkgdesc="2D rigid body simulation library for games (mingw32)"
6 url="http://www.box2d.org/"
7 license=('zlib')
8 arch=('i686' 'x86_64')
9 depends=('mingw32-gcc')
10 makedepends=('cmake')
11 options=(!strip !buildflags)
12 source=(http://box2d.googlecode.com/files/Box2D_v${pkgver}.zip
13         cmake-toolchain.cmake)
14 md5sums=('220f1d604444d00844cc91933c07ecd8'
15          'dd2b2db48187dff84050fe191d309d81')
17 build() {
18   cd ${srcdir}/Box2D_v${pkgver}/Box2D/
20   sed -i s/Windows\.h/windows.h/g Box2D/Common/b2Timer.cpp
22   msg "Starting build"
23   [[ -d build ]] && rm -r build
24   mkdir build && cd build 
26   unset LDFLAGS CFLAGS CXXFLAGS
27         cmake .. \
28     -DCMAKE_INSTALL_PREFIX=/usr/i486-mingw32 \
29     -DCMAKE_TOOLCHAIN_FILE=${srcdir}/cmake-toolchain.cmake \
30     -DBOX2D_INSTALL=ON \
31     -DBOX2D_BUILD_EXAMPLES=OFF \
32     -DBOX2D_BUILD_SHARED=OFF || return 1
33   make || return 1
34         make DESTDIR=${pkgdir} install || return 1
36 # vim: sw=2 ts=2 et: