[arch-commits] Commit in (4 files)
Jelle van der Waa
jelle at archlinux.org
Fri Aug 3 20:47:53 UTC 2018
Date: Friday, August 3, 2018 @ 20:47:53
Author: jelle
Revision: 330503
initial commmit
Moved due to version differences between python-django and python2-django
Added:
python2-django/
python2-django/repos/
python2-django/trunk/
python2-django/trunk/PKGBUILD
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Added: python2-django/trunk/PKGBUILD
===================================================================
--- python2-django/trunk/PKGBUILD (rev 0)
+++ python2-django/trunk/PKGBUILD 2018-08-03 20:47:53 UTC (rev 330503)
@@ -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
+}
Property changes on: python2-django/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list