summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-01-22 17:27:10 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-01-22 17:27:10 +0100
commita4aa31a6f6eaa4d2be588463b6918dd6a0f3a453 (patch)
tree510b4a1c02eecf989244757d130c5f3b80a5e510
parent05a95be53c18fbae03598eeb25219501f37094c8 (diff)
downloadabslibre-a4aa31a6f6eaa4d2be588463b6918dd6a0f3a453.tar.gz
abslibre-a4aa31a6f6eaa4d2be588463b6918dd6a0f3a453.tar.bz2
abslibre-a4aa31a6f6eaa4d2be588463b6918dd6a0f3a453.zip
pcr/python-django18: added
-rw-r--r--pcr/python-django18/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/pcr/python-django18/PKGBUILD b/pcr/python-django18/PKGBUILD
new file mode 100644
index 000000000..9e298967d
--- /dev/null
+++ b/pcr/python-django18/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer (AUR): Victor <v1c70rp@gmail.com>
+
+# parabola changes and rationale:
+# no changes.
+
+pkgname=('python-django18')
+pkgver=1.8.17
+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/"
+conflicts=('python-django')
+makedepends=('python' 'python-setuptools')
+optdepends=('python-psycopg2: for PostgreSQL backend')
+source=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/")
+md5sums=('e76842cdfbcb31286bd44f51e087a04c')
+sha256sums=('021bd648fcf454027063187e63a1ab4136c6929430ef5dfbe36235f60015eb07')
+
+prepare() {
+ cp -a "$srcdir/Django-$pkgver" "$srcdir/Django-$pkgver-python2"
+
+ find "$srcdir/Django-$pkgver-python2" -name '*.py' | \
+ xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
+}
+
+build() {
+ cd "$srcdir/Django-$pkgver"
+ python setup.py build
+}
+
+package() {
+ 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
+}