updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / pymunk / PKGBUILD
blob316f966d6b704e3af0f72506c0fb0da91a2ad8dd
1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
2 # Contributor: Dan Serban
3 # Contributor: Fabio Volpe
5 pkgname=pymunk
6 pkgver=2.0.0
7 pkgrel=2
8 pkgdesc="A wrapper around the 2d physics library Chipmunk"
9 arch=(any)
10 url=http://code.google.com/p/pymunk/
11 license=MIT
12 depends=(python2 chipmunk)
13 source=("http://pymunk.googlecode.com/files/$pkgname-$pkgver.zip")
14 md5sums=('850615bae6990d5c39d530f45d1eed29')
16 build() {
17         cd $pkgname-$pkgver
18         rm -rf build
19         rm pymunk/*.{so,dll}
20         python2 setup.py build
23 package() {
24         cd $pkgname-$pkgver
25         python2 setup.py install --root="$pkgdir"
26         _site_packages=$(python2 -sSc 'import site; print site.getsitepackages()[0]')
27         ln -s "/usr/lib/libchipmunk.so" "$pkgdir$_site_packages/$pkgname/libchipmunk64.so"
28         ln -s "/usr/lib/libchipmunk.so" "$pkgdir$_site_packages/$pkgname/libchipmunk.so"