2012-08-06 16:22:51 +08:00
|
|
|
#
|
|
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Adrián Chaves Fernández <adriyetichaves@gmail.com>
|
|
|
|
# Contributor: Dan McGee <dan@archlinux.org>
|
|
|
|
# Contributor: Shahar Weiss <sweiss4@gmx.net>
|
|
|
|
|
|
|
|
pkgname=django
|
|
|
|
_pkgname=Django
|
2013-02-17 07:41:19 +08:00
|
|
|
pkgver=1.4.3
|
2012-08-06 16:22:51 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A high-level Python Web framework."
|
|
|
|
arch=('any')
|
|
|
|
license=('BSD')
|
|
|
|
url="http://www.djangoproject.com/"
|
|
|
|
depends=('python2')
|
|
|
|
makedepends=('python-distribute')
|
|
|
|
optdepends=('mysql-python: for MySQL backend'
|
|
|
|
'python2-psycopg2: for PostgreSQL backend')
|
|
|
|
source=("https://www.djangoproject.com/m/releases/1.4/$_pkgname-$pkgver.tar.gz")
|
2013-02-17 07:41:19 +08:00
|
|
|
md5sums=('0b134c44b6dc8eb36822677ef506c9ab')
|
2012-08-06 16:22:51 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
|
|
|
python2 setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
|
|
|
python2 setup.py install --root="$pkgdir" --optimize=1
|
|
|
|
|
|
|
|
install -Dm644 extras/django_bash_completion \
|
|
|
|
"$pkgdir"/usr/share/bash-completion/completions/django-admin.py
|
|
|
|
ln -s django-admin.py \
|
|
|
|
"$pkgdir"/usr/share/bash-completion/completions/manage.py
|
|
|
|
|
|
|
|
find "$pkgdir"/usr/lib/python2.7/site-packages/django/ -name '*.py' | \
|
|
|
|
xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
|
|
|
|
|
|
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
|
|
}
|