1 # Contributor: Samed Beyribey <ras0ir@eventualis.org>
2 pkgname=django-gravatar-svn
5 pkgdesc="A template tag that makes it easy to add gravatar support to your Django application"
7 url="http://code.google.com/p/django-gravatar/"
10 makedepends=('subversion')
11 provides=('django-gravatar')
12 conflicts=('django-gravatar')
14 _svntrunk=http://django-gravatar.googlecode.com/svn/trunk/
15 _svnmod=django-gravatar-read-only
20 if [ -d $_svnmod/.svn ]; then
21 (cd $_svnmod && svn up -r $pkgver)
23 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26 msg "SVN checkout done or server timeout"
27 msg "Starting make..."
29 rm -rf "$srcdir/$_svnmod-build"
30 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
31 cd "$srcdir/$_svnmod-build"
36 python setup.py install --root=$pkgdir
37 install -D $srcdir/$_svnmod-build/LICENSE.txt $pkgdir/usr/share/licenses/django-gravatar/LICENSE.txt