1 # Maintainer: Øyvind 'Mr.Elendig' Heggstad <mrelendig AT har-ikkje.net>
2 pkgname=python-xlib-svn
5 pkgdesc="Python xlib library."
7 url="http://python-xlib.sourceforge.net/"
9 depends=('python2' 'libx11')
10 makedepends=('python2' 'subversion')
11 provides=('python-xlib')
12 conflicts=('python-xlib')
16 _svntrunk='https://python-xlib.svn.sourceforge.net/svnroot/python-xlib/trunk'
23 msg "Starting SVN checkout"
25 if [ -d $_svnmod/.svn ]; then
26 (cd $_svnmod && svn up -r $pkgver)
28 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
31 msg "SVN checkout done or server timeout"
32 msg "Preparing sources..."
34 if [ -d $srcdir/$_svnmod-build ] ; then
35 rm -rf "$srcdir/$_svnmod-build"
37 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
38 cd "$srcdir/$_svnmod-build"
41 msg "Running setup.py"
42 python2 setup.py install --root=$pkgdir --prefix=/usr