1 # Contributor: furester <furester at gmail dot com>
3 pkgname="python-etk-svn"
6 pkgdesc="ETK is a toolkit based on the EFL (Python bindings)"
8 url="http://www.enlightenment.org"
10 depends=('etk-svn' 'python')
11 makedepends=('svn' 'cython' 'pyrex')
17 _svntrunk="http://svn.enlightenment.org/svn/e/trunk/BINDINGS/python/python-etk/"
23 msg "Connecting to $_svntrunk SVN server...."
24 if [ -d $_svnmod/.svn ]; then
25 (cd $_svnmod && svn up -r $pkgver)
27 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
30 msg "SVN checkout done or server timeout"
31 msg "Starting make..."
33 cp -r $_svnmod $_svnmod-build
36 _incdir=`python -c "import distutils.sysconfig; \
37 print distutils.sysconfig.get_python_inc()"`
38 python setup.py install --root="$pkgdir" \
39 install_headers --install-dir="$pkgdir/${_incdir}" || return 1
41 # install license files
42 install -Dm644 $srcdir/$_svnmod-build/COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
43 install -Dm644 $srcdir/$_svnmod-build/COPYING-PLAIN $pkgdir/usr/share/licenses/$pkgname/COPYING-PLAIN
45 rm -r $srcdir/$_svnmod-build