1 # Maintainer: Astor Castelo <amcastelo[at]gatech[dot]edu>
2 # Contributor: Fabio Volpe <volpefabio@gmail.com>
3 # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
8 pkgdesc="A high-performance 2D rigid body physics library"
10 url="http://code.google.com/p/chipmunk-physics/"
12 depends=('mesa' 'freeglut' 'libxmu' 'libxext')
14 source=(http://files.slembcke.net/chipmunk/release/Chipmunk-${pkgver%%.*}.x/Chipmunk-$pkgver.tgz)
17 cd "$srcdir/Chipmunk-$pkgver"
18 sed -i '/MAKE_PROPERTIES_REF(cpShape, IsSensor);/d' include/chipmunk/chipmunk_ffi.h
19 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_DEMOS=OFF -DCMAKE_C_FLAGS="-DCHIPMUNK_FFI" .
25 cd "$srcdir/Chipmunk-$pkgver"
26 install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
27 make DESTDIR="$pkgdir" install
30 md5sums=('ba7ed00e32176152040801ad0b0c44f3')