mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
38 lines
1.3 KiB
Bash
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.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
|
|
}
|