1 # Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
6 pkgdesc="2D rigid body simulation library for games"
7 url="http://www.box2d.org/"
11 makedepends=('cmake' 'doxygen' 'ninja')
12 # We're going to this alternate fork until the patches are upstreamed.
13 # See https://github.com/erincatto/box2d/issues/621
14 #source=("$pkgname-$pkgver.tar.gz::https://github.com/erincatto/Box2D/archive/v${pkgver}.tar.gz"
15 source=("$pkgname-$pkgver.tar.gz::https://github.com/erincatto/box2d/archive/v2.4.1.tar.gz")
16 sha512sums=('d900f925b77906777719c91488bdc5e2df1ad1f4a8ca39a574229f5e57070e3a843bdd7530e817112605fde6d82145c872d8afdfc65b84531a73199098c81162')
24 -DBOX2D_BUILD_DOCS=ON \
25 -DBOX2D_BUILD_TESTBED=OFF \
26 -DBUILD_SHARED_LIBS=ON \
27 -DCMAKE_INSTALL_PREFIX=/usr
40 DESTDIR="$pkgdir" ninja -C build install
41 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/box2d/LICENSE