summaryrefslogtreecommitdiff
path: root/community/python-pybox2d
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-29 03:30:04 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-29 03:30:04 +0000
commit0a521de4508e14363c59922ab2744ab699e30288 (patch)
tree22a9004955fd3ec5f7aa81f799bd9eabed325d15 /community/python-pybox2d
parent462391357aa5e749dc9908c15f3baa0b4416f3d8 (diff)
Wed Jan 29 03:27:46 UTC 2014
Diffstat (limited to 'community/python-pybox2d')
-rw-r--r--community/python-pybox2d/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/python-pybox2d/PKGBUILD b/community/python-pybox2d/PKGBUILD
new file mode 100644
index 000000000..e82a9703e
--- /dev/null
+++ b/community/python-pybox2d/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 104878 2014-01-28 00:06:26Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
+
+pkgbase=python-pybox2d
+pkgname=('python2-pybox2d')
+pkgver=370
+pkgrel=1
+arch=('x86_64' 'i686')
+url='http://code.google.com/p/pybox2d'
+license=('GPL')
+makedepends=('subversion' 'python2' 'swig')
+source=("$pkgbase::svn+http://pybox2d.googlecode.com/svn/trunk/")
+md5sums=('SKIP')
+
+build() {
+ cd "$pkgbase"
+
+ python2 setup.py build
+}
+
+package_python2-pybox2d() {
+ depends=('python2')
+ pkgdesc='Python wrapper for Box2D'
+
+ cd "$pkgbase"
+
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ # Fixes the warning about a missing dependency on python
+ sed -i 's:python:python2:g' \
+ "$pkgdir/usr/lib/python2.7/site-packages/Box2D/__init__.py"
+}
+
+# vim: sw=2 ts=2 et: