mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
pkgname=django
|
|
_pkgname=Django
|
|
pkgver=1.8.4
|
|
_pkgver=1.8
|
|
pkgrel=1
|
|
pkgdesc="A high-level Python Web framework."
|
|
arch=('x86_64')
|
|
license=('BSD')
|
|
url="http://www.djangoproject.com/"
|
|
depends=('python2')
|
|
makedepends=('python-distribute')
|
|
optdepends=('mysql-python: for MySQL backend'
|
|
'python2-psycopg2: for PostgreSQL backend')
|
|
source=("https://www.djangoproject.com/m/releases/$_pkgver/$_pkgname-$pkgver.tar.gz")
|
|
sha512sums=('34dee1d004f4b149bd8b0405bcad66c0b4ad68b3c0069b1631af2c457cbcc165d6a730d221777110525be74cf9369b695d4fc8d752317d0819fd338250222351')
|
|
|
|
build() {
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
|
python2 setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
|
python2 setup.py install --root="$pkgdir" --optimize=1
|
|
|
|
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/manage.py
|
|
|
|
find "$pkgdir"/usr/lib/python2.7/site-packages/django/ -name '*.py' | \
|
|
xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
|
|
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|