diff options
author | xantares | 2015-06-08 23:48:21 +0200 |
---|---|---|
committer | xantares | 2015-06-08 23:48:21 +0200 |
commit | 71fdb3bb33cec841c7778c44d60e61db69338376 (patch) | |
tree | 184a138cdc4a5dfc1d9228889af2dc74e8bc7965 | |
download | aur-71fdb3bb33cec841c7778c44d60e61db69338376.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9d042353006d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = mingw-w64-box2d + pkgdesc = 2D rigid body simulation library for games (mingw-w64) + pkgver = 2.3.1 + pkgrel = 1 + url = http://www.box2d.org/ + arch = any + license = zlib + makedepends = mingw-w64-cmake + makedepends = subversion + depends = mingw-w64-crt + options = staticlibs + options = !strip + options = !buildflags + source = box2d-2.3.1::svn+http://box2d.googlecode.com/svn/tags/v2.3.1 + md5sums = SKIP + +pkgname = mingw-w64-box2d + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ee0c379e5489 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +pkgname=mingw-w64-box2d +pkgver=2.3.1 +pkgrel=1 +pkgdesc="2D rigid body simulation library for games (mingw-w64)" +arch=(any) +url="http://www.box2d.org/" +license=("zlib") +makedepends=('mingw-w64-cmake' 'subversion') +depends=('mingw-w64-crt') +options=('staticlibs' '!strip' '!buildflags') +source=("box2d-$pkgver::svn+http://box2d.googlecode.com/svn/tags/v2.3.1") +md5sums=('SKIP') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare () { + cd "$srcdir/box2d-$pkgver" +} + +build() { + cd "$srcdir/box2d-$pkgver/Box2D" + unset LDFLAGS + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-cmake \ + -DBOX2D_INSTALL:BOOL=ON \ + -DBOX2D_BUILD_EXAMPLES:BOOL=OFF \ + -DBOX2D_BUILD_SHARED:BOOL=ON \ + .. + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "$srcdir/box2d-$pkgver/Box2D/build-${_arch}" + make DESTDIR="$pkgdir" install + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |