[arch-commits] Commit in python2-django/repos (extra-any extra-any/PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Fri Aug 3 20:48:19 UTC 2018


    Date: Friday, August 3, 2018 @ 20:48:18
  Author: jelle
Revision: 330504

archrelease: copy trunk to extra-any

Added:
  python2-django/repos/extra-any/
  python2-django/repos/extra-any/PKGBUILD
    (from rev 330503, python2-django/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: python2-django/repos/extra-any/PKGBUILD (from rev 330503, python2-django/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD	                        (rev 0)
+++ extra-any/PKGBUILD	2018-08-03 20:48:18 UTC (rev 330504)
@@ -0,0 +1,39 @@
+# $Id$
+# 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.15
+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=('4ea18c59f7c74d0b6deb9d292d5de068c6dcc53d9596f321f5a7e823ff5fe423cc8d69c88bf53e3acd9c36c4ecc4447148243a127d5114a4894b0fd4d449f37e')
+
+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