updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / django12 / PKGBUILD
bloba6f5469044c7ba3016772c157178d0501e0e07bd
1 # Maintainer: Jonathan Liu <net147@gmail.com>
2 pkgname=django12
3 pkgver=1.2.7
4 pkgrel=1
5 pkgdesc="A high-level Python Web framework."
6 arch=('any')
7 license=('BSD')
8 url="http://www.djangoproject.com/"
9 depends=('python2')
10 makedepends=('python2-distribute')
11 optdepends=('mysql-python: for MySQL backend'
12             'python2-psycopg2: for PostgreSQL backend')
13 provides=("django=${pkgver}")
14 conflicts=("django")
15 source=("http://media.djangoproject.com/releases/1.2/Django-${pkgver}.tar.gz")
16 md5sums=('902fe294a2f7b16e5e1dee42d458c2ba')
18 build() {
19   cd "${srcdir}/Django-${pkgver}"
20   python2 setup.py build
23 package() {
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: