1 # Maintainer: Jonathan Liu <net147@gmail.com>
5 pkgdesc="A high-level Python Web framework."
8 url="http://www.djangoproject.com/"
10 makedepends=('python2-distribute')
11 optdepends=('mysql-python: for MySQL backend'
12 'python2-psycopg2: for PostgreSQL backend')
13 provides=("django=${pkgver}")
15 source=("http://media.djangoproject.com/releases/1.2/Django-${pkgver}.tar.gz")
16 md5sums=('902fe294a2f7b16e5e1dee42d458c2ba')
19 cd "${srcdir}/Django-${pkgver}"
20 python2 setup.py build
24 cd "${srcdir}/Django-${pkgver}"
25 python2 setup.py install --root="${pkgdir}" -O1
26 install -Dm644 extras/django_bash_completion \
27 "${pkgdir}/etc/bash_completion.d/django"
28 find "${pkgdir}/usr/lib/python2.7/site-packages/django" -type f \
29 -name '*.py' | xargs sed -i \
30 "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
31 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
34 # vim:set ts=2 sw=2 et: