2018-08-07 16:56:30 +08:00
|
|
|
# Contributions from Arch:
|
|
|
|
# Maintainer: Angel Velasquez <angvp@archlinux.org>
|
|
|
|
# Maintainer: Dan McGee <dan@archlinux.org>
|
|
|
|
# Contributor: Shahar Weiss <sweiss4@gmx.net>
|
|
|
|
|
|
|
|
pkgname=python3-django
|
2019-01-08 11:51:56 +08:00
|
|
|
pkgver=2.1.5
|
2018-08-07 16:56:30 +08:00
|
|
|
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/")
|
2019-01-08 11:51:56 +08:00
|
|
|
sha256sums=('d6393918da830530a9516bbbcbf7f1214c3d733738779f06b0f649f49cc698c3')
|
2018-08-07 16:56:30 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|