updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / pymunk-svn / PKGBUILD
blobd2bbe54ad510b33084aafb98d91157c65a54a70f
1 # Contributor: Joseph Xu <josephzxu@gmail.com>
2 pkgname=pymunk-svn
3 pkgver=261
4 pkgrel=1
5 pkgdesc="pymunk is a wrapper around the 2d physics library Chipmunk"
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/pymunk/"
8 license=('MIT')
9 depends=('python>=2.4')
10 makedepends=('gcc')
12 build() {
13         svn co http://pymunk.googlecode.com/svn/trunk/ pymunk
14         cd pymunk
15         python setup.py install --root=$pkgdir
16         mkdir -p $pkgdir/usr/share/licenses/pymunk
17         cp LICENSE.txt $pkgdir/usr/share/licenses/pymunk/LICENSE
18         
19         # remove some unnecessary binaries
20         cd $pkgdir/usr/lib/python*/site-packages/pymunk/
21         rm *.dylib *.dll
22         echo $CARCH
23         if [ "$CARCH" = "i686" ]; then
24                 rm libchipmunk64.so
25         else
26                 rm libchipmunk.so
27         fi