mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
33 lines
1.2 KiB
Bash
33 lines
1.2 KiB
Bash
pkgname=python2-django
|
|
pkgver=1.11.18
|
|
pkgrel=1
|
|
pkgdesc="A high-level Python Web framework that encourages rapid development and clean design"
|
|
arch=('any')
|
|
license=('BSD')
|
|
url="https://www.djangoproject.com/"
|
|
makedepends=('python2' 'python2-setuptools')
|
|
depends=('python2' 'python2-setuptools' 'python2-pytz')
|
|
source=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/")
|
|
sha256sums=('73cca1dac154e749b39cc91a54dc876109eb0512a5c6804986495305047066a5')
|
|
|
|
build() {
|
|
cd "$srcdir/Django-$pkgver"
|
|
python2 setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/Django-$pkgver"
|
|
python2 setup.py install --root="$pkgdir" --optimize=1
|
|
|
|
mv "$pkgdir"/usr/bin/django-admin.py "$pkgdir"/usr/bin/django-admin2.py
|
|
mv "$pkgdir"/usr/bin/django-admin "$pkgdir"/usr/bin/django-admin2
|
|
# TODO: this probably won't work due to the `complete` command within not
|
|
# knowing about modified our exectuable names
|
|
install -Dm644 extras/django_bash_completion \
|
|
"$pkgdir"/usr/share/bash-completion/completions/django-admin2.py
|
|
ln -s django-admin2.py \
|
|
"$pkgdir"/usr/share/bash-completion/completions/django-admin2
|
|
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|