updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / django-evolution-svn / PKGBUILD
blobf1a737ecde1fc4ebb0d30ed5eb5618efc52b3883
1 # Contributor: Ryan Coyner <rcoyner@gmail.com>
2 # Contributor: RĂ©mi Audebert <quaero.galileo@gmail.com>
4 pkgname=django-evolution-svn
5 pkgver=198
6 pkgrel=1
7 pkgdesc="Schema Evolution for the Django Project"
8 arch=('any')
9 url="http://code.google.com/p/django-evolution"
10 license=('BSD')
11 depends=('python2')
12 makedepends=('subversion')
13 provides=('django-evolution')
15 _svntrunk=http://django-evolution.googlecode.com/svn/trunk/
16 _svnmod=django-evolution
18 build() {
19     cd "$srcdir"
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"
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