[arch-commits] Commit in django/repos (staging-any staging-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 16:55:35 UTC 2020
Date: Monday, November 9, 2020 @ 16:55:34
Author: felixonmars
Revision: 399836
archrelease: copy trunk to staging-any
Added:
django/repos/staging-any/
django/repos/staging-any/PKGBUILD
(from rev 399835, django/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: django/repos/staging-any/PKGBUILD (from rev 399835, django/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2020-11-09 16:55:34 UTC (rev 399836)
@@ -0,0 +1,48 @@
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Dan McGee <dan at archlinux.org>
+# Contributor: Shahar Weiss <sweiss4 at gmx.net>
+
+pkgbase=django
+pkgname=('python-django')
+pkgver=3.1.3
+pkgrel=2
+pkgdesc="A high-level Python Web framework that encourages rapid development and clean design"
+arch=('any')
+license=('BSD')
+url="http://www.djangoproject.com/"
+checkdepends=('python-pytest' 'python-tblib')
+makedepends=('python' 'python-setuptools')
+depends=('python' 'python-setuptools' 'python-pytz' 'python-sqlparse' 'python-asgiref')
+optdepends=('python-psycopg2: for PostgreSQL backend')
+source=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/")
+sha512sums=('0f49316dc61a299a257313c27051852e948337491047bacb2221c9c753a5cf4bafb2ed686311ad5345dd3045260331afccb013c21503891538340225a469d1ad')
+
+build() {
+ cd "$srcdir/Django-$pkgver"
+ python setup.py build
+}
+
+package_python-django() {
+ cd "$srcdir/Django-$pkgver"
+
+ # fix reproducibility of .pyc files
+ export PYTHONHASHSEED=0
+
+ python 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
+}
+
+check() {
+ cd "$srcdir/Django-$pkgver"
+ PYTHONPATH="$PWD" python tests/runtests.py || echo 'tests failed'
+}
More information about the arch-commits
mailing list