updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pybox2d-svn / PKGBUILD
blob5a705d492dfacdcef0925812d103321800ce63e6
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 pkgname=pybox2d-svn
3 pkgver=212
4 pkgrel=1
5 pkgdesc="python wrapper for Box2D"
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/pybox2d"
8 license=('GPL')
9 depends=('python-pygame' 'swig')
10 makedepends=('subversion')
11 source=()
12 md5sums=()
14 _svntrunk=http://pybox2d.googlecode.com/svn/trunk/
15 _svnmod=pybox2d
17 build() {
18   cd ${srcdir}
19   
20   if [ -d ${_svnmod}/.svn ]; then
21         (cd ${_svnmod} && svn up -r ${pkgver})
22   else
23         svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
24   fi
25   
26   msg "SVN checkout done or server timeout"
27   msg "Starting make..."
28   
29   cp -r ${_svnmod} $_svnmod-build
30   cd ${_svnmod}-build
32   python2 setup.py build
35 package() {
36   cd ${srcdir}/${_svnmod}-build
38   python2 setup.py install --root=${pkgdir} 
40 # vim: sw=2 ts=2 et: