1 #Contributor: twa022 <twa022 at gmail dot com>
3 pkgname=python-ctypeslib
4 pkgdesc="code generator to convert header files into ctypes interfaces"
8 url="http://code.google.com/p/fusepy/"
11 makedepends=('svn' 'python2-distribute')
13 _svntrunk=http://svn.python.org/projects/ctypes/trunk/ctypeslib/
19 if [ -d $_svnmod/.svn ]; then
20 ( cd $_svnmod && svn up )
22 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25 msg "SVN checkout done or sever timeout"
26 msg "Starting make..."
28 cp -r $_svnmod $_svnmod-build
30 python2 setup.py install --root=$pkgdir || return 1
31 install -D -m644 LICENSE.txt ${pkgdir}/usr/share/licences/$pkgname
32 ln -s /usr/bin/h2xml.py $pkgdir/usr/bin/h2xml
33 ln -s /usr/bin/xml2py.py $pkgdir/usr/bin/xml2py