updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / django-rosetta-svn / PKGBUILD
blob8aebaf40212c7972f1a28ed4293e1745c6a48b45
1 # Maintainer: Alper Kanat <alperkanat@raptiye.org>
3 pkgname=django-rosetta-svn
4 pkgver=112
5 pkgrel=1
6 pkgdesc="An application that eases the translation process of your django projects"
7 arch=('any')
8 url="http://code.google.com/p/django-rosetta/"
9 license=('MIT')
10 depends=('django' 'python2')
11 makedepends=('python2-distribute' 'subversion')
12 provides=("django-rosetta")
13 conflicts=("django-rosetta")
14 source=()
15 md5sums=()
17 _svntrunk=http://django-rosetta.googlecode.com/svn/trunk/
18 _svnmod=django-rosetta
20 build() { 
21     cd "$srcdir"
23     # checking out or updating code
24     echo "Downloading sources from SVN..."
25     if [[ -d "$_svnmod" ]]; then
26         svn up -r $pkgver
27     else
28         svn co $_svntrunk -r $pkgver $_svnmod
29     fi
31     # copying files..
32     echo "Copying files..."
33     cd $srcdir/$_svnmod
35     # first copying django
36     python2 setup.py install --root=$pkgdir --optimize=1 || return 1
38     # copying license information
39     install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
41     # fix for py2k
42     find $pkgdir/usr/lib/python2.7/site-packages/rosetta/ -name '*.py' | \
43         xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"