updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / python-ctypeslib / PKGBUILD
blob816f0f50aa22b1aaf572d0c2aad098d4047f9585
1 #Contributor: twa022 <twa022 at gmail dot com>
3 pkgname=python-ctypeslib
4 pkgdesc="code generator to convert header files into ctypes interfaces"
5 pkgver=77594
6 pkgrel=1
7 arch=('any')
8 url="http://code.google.com/p/fusepy/"
9 license=('Custom')
10 depends=('python2')
11 makedepends=('svn' 'python2-distribute')
13 _svntrunk=http://svn.python.org/projects/ctypes/trunk/ctypeslib/
14 _svnmod=$pkgname
16 build() {
17         
18         cd $srcdir
19         if [ -d $_svnmod/.svn ]; then
20                 ( cd $_svnmod && svn up )
21         else
22                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
23         fi
25         msg "SVN checkout done or sever timeout"
26         msg "Starting make..."
28         cp -r $_svnmod $_svnmod-build
29         cd $_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
34