1 # Contributor: furester <furester at gmail dot com>
2 # Contributor: Changaco <changaco ατ changaco δοτ net>
4 pkgname="python2-ecore-svn"
7 pkgdesc="Ecore is an abstraction layer for e17 (Python bindings)"
9 url="http://www.enlightenment.org"
11 depends=('ecore-svn' 'python2')
12 makedepends=('svn' 'cython' 'pyrex')
13 optdepends=('python2-evas-svn: for evas submodule, build python2-evas-svn first')
15 _svntrunk="http://svn.enlightenment.org/svn/e/trunk/BINDINGS/python/python-ecore/"
16 _svnmod="python-ecore"
21 msg "Connecting to $_svntrunk SVN server...."
22 if [ -d $_svnmod/.svn ]; then
23 (cd $_svnmod && svn up -r $pkgver)
25 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28 msg "SVN checkout done or server timeout"
29 msg "Starting make..."
33 export PYTHON="/usr/bin/python2"
34 ./autogen.sh --prefix=/usr
36 make install DESTDIR=$pkgdir
37 sed -i -e 's@^#! */usr/bin.*python@#!/usr/bin/env python2@' $(find $pkgdir -name '*.py')