summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMassimiliano Torromeo2011-10-13 18:37:11 +0200
committerMassimiliano Torromeo2011-10-13 18:37:11 +0200
commit4f768954ad645cdf675f939252df10a47aea1c66 (patch)
treea0d4d41bb62dae322765f38310423449ccd76a09
parent02cadb9714e305908b8251f4c622f5f6234c50a8 (diff)
downloadaur-4f768954ad645cdf675f939252df10a47aea1c66.tar.gz
Downgraded to v 6.0.1 since 6.0.2 seems to break pymunk
-rw-r--r--PKGBUILD11
-rw-r--r--chipmunk-6.0.2-ffi_duplicate_definition.patch10
2 files changed, 4 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a74f70d9ec7..da87986d5da 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=chipmunk
-pkgver=6.0.2
+pkgver=6.0.1
pkgrel=1
pkgdesc="A high-performance 2D rigid body physics library"
arch=('i686' 'x86_64')
@@ -11,13 +11,11 @@ url="http://code.google.com/p/chipmunk-physics/"
license=('MIT')
depends=('mesa' 'freeglut' 'libxmu' 'libxext')
makedepends=('cmake')
-source=(http://files.slembcke.net/chipmunk/release/Chipmunk-${pkgver%%.*}.x/Chipmunk-$pkgver.tgz chipmunk-6.0.2-ffi_duplicate_definition.patch)
+source=(http://files.slembcke.net/chipmunk/release/Chipmunk-${pkgver%%.*}.x/Chipmunk-$pkgver.tgz)
build() {
cd "$srcdir/Chipmunk-$pkgver"
- patch -p0 -i "$srcdir/chipmunk-6.0.2-ffi_duplicate_definition.patch"
- # Fix wrong lib version number
- sed -i 's|6.0.1|6.0.2|' src/CMakeLists.txt
+ sed -i '/MAKE_PROPERTIES_REF(cpShape, IsSensor);/d' include/chipmunk/chipmunk_ffi.h
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_DEMOS=OFF -DCMAKE_C_FLAGS="-DCHIPMUNK_FFI" .
make clean
make
@@ -29,5 +27,4 @@ package() {
make DESTDIR="$pkgdir" install
}
-md5sums=('c1b7917e7ce2160fa2d5305a451b152c'
- '5260d3d4e86cde4859a8fc3baccfde09')
+md5sums=('ba7ed00e32176152040801ad0b0c44f3')
diff --git a/chipmunk-6.0.2-ffi_duplicate_definition.patch b/chipmunk-6.0.2-ffi_duplicate_definition.patch
deleted file mode 100644
index ebaf62365f4..00000000000
--- a/chipmunk-6.0.2-ffi_duplicate_definition.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- include/chipmunk/chipmunk_ffi.h.orig 2011-10-13 17:32:21.383255385 +0200
-+++ include/chipmunk/chipmunk_ffi.h 2011-10-13 17:32:27.493226698 +0200
-@@ -160,7 +160,6 @@
- MAKE_PROPERTIES_REF(cpSpace, Damping);
- MAKE_PROPERTIES_REF(cpSpace, IdleSpeedThreshold);
- MAKE_PROPERTIES_REF(cpSpace, SleepTimeThreshold);
--MAKE_PROPERTIES_REF(cpSpace, SleepTimeThreshold);
- MAKE_PROPERTIES_REF(cpSpace, CollisionSlop);
- MAKE_PROPERTIES_REF(cpSpace, CollisionBias);
- MAKE_PROPERTIES_REF(cpSpace, CollisionPersistence);