desktop/python3-django/PKGBUILD
2019-01-08 04:51:56 +01:00

38 lines
1.3 KiB
Bash

# Contributions from Arch:
# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Maintainer: Dan McGee <dan@archlinux.org>
# Contributor: Shahar Weiss <sweiss4@gmx.net>
pkgname=python3-django
pkgver=2.1.5
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=('d6393918da830530a9516bbbcbf7f1214c3d733738779f06b0f649f49cc698c3')
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
}