1 # Contributor: Paul Colomiets <pc@gafol.net>
5 pkgdesc="A pure-python wrapper generator for ctypes"
7 url="http://code.google.com/p/ctypesgen/"
10 provices=('ctypesgen')
11 makedepends=('subversion')
13 _svntrunk=http://ctypesgen.googlecode.com/svn/trunk/
19 if [ -d $_svnmod/.svn ]; then
20 (cd $_svnmod && svn up -r $pkgver)
22 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25 msg "SVN checkout done or server timeout"
26 msg "Starting make..."
28 rm -rf "$srcdir/$_svnmod-build"
29 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
30 cd "$srcdir/$_svnmod-build"
35 python setup.py build || return 1
36 python setup.py install --root=$pkgdir/ --optimize=1 || return 1