summaryrefslogtreecommitdiff
path: root/community/python-pybox2d/PKGBUILD
blob: e82a9703ef5650acccbf8ce4fa0b267323a45e7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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: