1 # Contributor: Ryan Coyner <rcoyner@gmail.com>
2 # Contributor: RĂ©mi Audebert <quaero.galileo@gmail.com>
4 pkgname=django-evolution-svn
7 pkgdesc="Schema Evolution for the Django Project"
9 url="http://code.google.com/p/django-evolution"
12 makedepends=('subversion')
13 provides=('django-evolution')
15 _svntrunk=http://django-evolution.googlecode.com/svn/trunk/
16 _svnmod=django-evolution
21 if [ -d $_svnmod/.svn ]; then
22 (cd $_svnmod && svn up -r $pkgver)
24 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27 msg "SVN checkout done or server timeout"
29 rm -rf "$srcdir/$_svnmod-build"
30 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
31 cd "$srcdir/$_svnmod-build"
33 msg "Starting setup.py..."
35 python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1
36 install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE