[arch-commits] Commit in python2-django/repos (community-any community-any/PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Fri Nov 15 21:41:34 UTC 2019
Date: Friday, November 15, 2019 @ 21:41:33
Author: jelle
Revision: 368943
archrelease: copy trunk to community-any
Added:
python2-django/repos/community-any/
python2-django/repos/community-any/PKGBUILD
(from rev 368942, python2-django/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python2-django/repos/community-any/PKGBUILD (from rev 368942, python2-django/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2019-11-15 21:41:33 UTC (rev 368943)
@@ -0,0 +1,38 @@
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Dan McGee <dan at archlinux.org>
+# Contributor: Shahar Weiss <sweiss4 at gmx.net>
+
+pkgname=python2-django
+pkgver=1.11.26
+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=('python2' 'python2-setuptools')
+depends=('python2' 'python2-setuptools' 'python2-pytz')
+optdepends=('mysql-python: for MySQL backend'
+ 'python2-psycopg2: for PostgreSQL backend')
+source=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/")
+sha512sums=('2c6bd31c1aa7131702c75accde537b2e7aaa6a7b687dd501d8d4552dd5e007bce12179719f40374aca06855414535b5126579a15d55419a0a34a4bb17221e021')
+
+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
+}
More information about the arch-commits
mailing list