updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / django-gravatar-svn / PKGBUILD
blob99cb1eedb0bfcb7e2f2e228b2d560e897469b6f7
1 # Contributor: Samed Beyribey <ras0ir@eventualis.org>
2 pkgname=django-gravatar-svn
3 pkgver=13
4 pkgrel=1
5 pkgdesc="A template tag that makes it easy to add gravatar support to your Django application"
6 arch=(any)
7 url="http://code.google.com/p/django-gravatar/"
8 license=('BSD')
9 depends=('django')
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
17 build() {
18   cd "$srcdir"
20   if [ -d $_svnmod/.svn ]; then
21     (cd $_svnmod && svn up -r $pkgver)
22   else
23     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
24   fi
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"
33   #
34   # BUILD
35   #
36   python setup.py install --root=$pkgdir
37   install -D $srcdir/$_svnmod-build/LICENSE.txt $pkgdir/usr/share/licenses/django-gravatar/LICENSE.txt