updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python2-edje-svn / PKGBUILD
blob69d02d308eb8ef922a4250abbb8a54f472570499
1 # Contributor: furester <furester at gmail dot com>
2 # Contributor: Changaco <changaco ατ changaco δοτ net>
4 pkgname="python2-edje-svn"
5 pkgver=53859
6 pkgrel=2
7 pkgdesc="A graphical design and layout library based on Evas (Python bindings)"
8 arch=('i686' 'x86_64')
9 url="http://www.enlightenment.org"
10 license=(LGPL2.1)
11 depends=('edje-svn' 'python2' 'python2-evas-svn')
12 makedepends=('svn' 'cython' 'pyrex' 'python2-evas-svn')
14 _svntrunk="http://svn.enlightenment.org/svn/e/trunk/BINDINGS/python/python-edje/"
15 _svnmod="python-edje"
17 build() {
18         cd $srcdir
20         msg "Connecting to $_svntrunk SVN server...."
21         if [ -d $_svnmod/.svn ]; then
22                 (cd $_svnmod && svn up -r $pkgver)
23         else
24                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25         fi
27         msg "SVN checkout done or server timeout"
28         msg "Starting make..."
30         cd $_svnmod
32         export PYTHON="/usr/bin/python2"
33         ./autogen.sh --prefix=/usr
34         make
35         make install DESTDIR=$pkgdir
36         sed -i -e 's@^#! */usr/bin.*python@#!/usr/bin/env python2@' $(find $pkgdir -name '*.py')