[arch-commits] Commit in django/repos (staging-any staging-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Jun 30 06:13:17 UTC 2018
Date: Saturday, June 30, 2018 @ 06:13:17
Author: felixonmars
Revision: 327807
archrelease: copy trunk to staging-any
Added:
django/repos/staging-any/
django/repos/staging-any/PKGBUILD
(from rev 327806, django/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: django/repos/staging-any/PKGBUILD (from rev 327806, django/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2018-06-30 06:13:17 UTC (rev 327807)
@@ -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>
+
+pkgbase=django
+pkgname=('python-django')
+pkgver=2.0.6
+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/"
+makedepends=('python' 'python-setuptools')
+source=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/")
+sha512sums=('68a09047fe681d192f44df2287977f6c8a49d02af41e87ca86b64d8522c8ff4ceeb1e61f4521f3cdd05a586d58224ae3e6bc9d95dc7d623719486a9a085701b5')
+
+build() {
+ cd "$srcdir/Django-$pkgver"
+ python setup.py build
+}
+
+package_python-django() {
+ depends=('python' 'python-setuptools' 'python-pytz')
+ optdepends=('python-psycopg2: for PostgreSQL backend')
+ cd "$srcdir/Django-$pkgver"
+ 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
+}
More information about the arch-commits
mailing list