# Contributions from Arch: # Maintainer: Angel Velasquez # Maintainer: Dan McGee # Contributor: Shahar Weiss pkgname=python3-django pkgver=2.1.2 pkgrel=1 pkgdesc="A high-level Python Web framework that encourages rapid development and clean design" arch=('any') license=('BSD') url="http://www.djangoproject.com/" makedepends=('python3-setuptools') depends=('python3' 'python3-setuptools' 'python3-pytz') source=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/") sha256sums=('efbcad7ebb47daafbcead109b38a5bd519a3c3cd92c6ed0f691ff97fcdd16b45') build() { cd "$srcdir/Django-$pkgver" python3 setup.py build } package() { cd "$srcdir/Django-$pkgver" python3 setup.py install --root="$pkgdir" --optimize=1 ln -s django-admin.py "$pkgdir"/usr/bin/django-admin3.py ln -s django-admin "$pkgdir"/usr/bin/django-admin3 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/django-admin ln -s django-admin.py \ "$pkgdir"/usr/share/bash-completion/completions/manage.py install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }