updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / chipmunk / PKGBUILD
blobda87986d5dae78ea83a0ce726acb4afb3cf195aa
1 # Maintainer: Astor Castelo <amcastelo[at]gatech[dot]edu>
2 # Contributor: Fabio Volpe <volpefabio@gmail.com>
3 # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
5 pkgname=chipmunk
6 pkgver=6.0.1
7 pkgrel=1
8 pkgdesc="A high-performance 2D rigid body physics library"
9 arch=('i686' 'x86_64')
10 url="http://code.google.com/p/chipmunk-physics/"
11 license=('MIT')
12 depends=('mesa' 'freeglut' 'libxmu' 'libxext')
13 makedepends=('cmake')
14 source=(http://files.slembcke.net/chipmunk/release/Chipmunk-${pkgver%%.*}.x/Chipmunk-$pkgver.tgz)
16 build() {
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" .
20         make clean
21         make
24 package() {
25         cd "$srcdir/Chipmunk-$pkgver"
26         install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
27         make DESTDIR="$pkgdir" install
30 md5sums=('ba7ed00e32176152040801ad0b0c44f3')