OCaml 4.14.0 rebuild
[arch-packages.git] / django / trunk / PKGBUILD
blob3655830a6e485cca55d36967d6da5c3c382d7c51
1 # Maintainer: Angel Velasquez <angvp@archlinux.org>
2 # Maintainer: Dan McGee <dan@archlinux.org>
3 # Contributor: Shahar Weiss <sweiss4@gmx.net>
5 pkgbase=django
6 pkgname=('python-django')
7 pkgver=4.0.6
8 pkgrel=1
9 pkgdesc="A high-level Python Web framework that encourages rapid development and clean design"
10 arch=('any')
11 license=('BSD')
12 url="http://www.djangoproject.com/"
13 checkdepends=('python-pytest' 'python-tblib')
14 makedepends=('python' 'python-setuptools')
15 depends=('python' 'python-pytz' 'python-sqlparse' 'python-asgiref')
16 # TODO: package and add python-pymemcache https://docs.djangoproject.com/en/dev/topics/cache/
17 optdepends=('python-psycopg2: for PostgreSQL backend'
18             'python-argon2_cffi: for Argon2 password hashing support')
19 source=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/")
20 sha512sums=('1050511bd9345519d8382a58e4e6ccc39cd41a6777c9575540dcc655f11dd36316cfc2431f94da9ac4a0fa6e41640a9131c8d49df4188a2ffc26f7ff56d40a6a')
22 build() {
23   cd "$srcdir/Django-$pkgver"
24   python setup.py build
27 package_python-django() {
28   cd "$srcdir/Django-$pkgver"
30   python setup.py install --root="$pkgdir" --optimize=1
32   ln -s django-admin.py "$pkgdir"/usr/bin/django-admin3.py
33   ln -s django-admin "$pkgdir"/usr/bin/django-admin3
34   install -Dm644 extras/django_bash_completion \
35     "$pkgdir"/usr/share/bash-completion/completions/django-admin.py
36   ln -s django-admin.py \
37     "$pkgdir"/usr/share/bash-completion/completions/django-admin
38   ln -s django-admin.py \
39     "$pkgdir"/usr/share/bash-completion/completions/manage.py
41   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
44 check() {
45   cd "$srcdir/Django-$pkgver"
46   PYTHONPATH="$PWD" python tests/runtests.py || echo 'tests failed'