summaryrefslogtreecommitdiff
path: root/community/python-pybox2d/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/python-pybox2d/PKGBUILD')
-rw-r--r--community/python-pybox2d/PKGBUILD34
1 files changed, 22 insertions, 12 deletions
diff --git a/community/python-pybox2d/PKGBUILD b/community/python-pybox2d/PKGBUILD
index 874445d6f..193f1b1e1 100644
--- a/community/python-pybox2d/PKGBUILD
+++ b/community/python-pybox2d/PKGBUILD
@@ -1,25 +1,35 @@
-# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
-pkgname=python-pybox2d
+# $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
-pkgdesc="Python wrapper for Box2D"
arch=('i686' 'x86_64' 'mips64el')
-url="http://code.google.com/p/pybox2d"
+url='http://code.google.com/p/pybox2d'
license=('GPL')
-depends=('python' 'swig')
-makedepends=('subversion')
-source=("svn+http://pybox2d.googlecode.com/svn/trunk/")
+makedepends=('subversion' 'python2' 'swig')
+source=("$pkgbase::svn+http://pybox2d.googlecode.com/svn/trunk/")
md5sums=('SKIP')
build() {
- cd ${srcdir}/trunk
+ cd "$pkgbase"
- python setup.py build
+ python2 setup.py build
}
-package() {
- cd ${srcdir}/trunk
+package_python2-pybox2d() {
+ depends=('python2')
+ pkgdesc='Python wrapper for Box2D'
+
+ cd "$pkgbase"
- python setup.py install --root=${pkgdir}
+ 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: