diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2019-04-01 20:14:22 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2019-04-01 21:05:08 -0400 |
commit | 7954b0741996a9997e753041fb2b065fe3ecbc6b (patch) | |
tree | e677b632583dcbe474bf80c88a2435473ca4ec6a /libre/django1.8/PKGBUILD | |
parent | c46b33f57bc0d686b1a0d5822da0caa8ad378d05 (diff) | |
download | abslibre-7954b0741996a9997e753041fb2b065fe3ecbc6b.tar.gz abslibre-7954b0741996a9997e753041fb2b065fe3ecbc6b.tar.bz2 abslibre-7954b0741996a9997e753041fb2b065fe3ecbc6b.zip |
Import old versions of parabolaweb dependencies from Arch to [libre]
package version next revision
-----------------------------------------------------------------------------------------------------------------------------------------
community/python-markdown 2.6.11-1 → 3.0-1 git-svn-id: file:///srv/repos/svn-community/svn@349084 9fca08f4-af9d-4005-b8df-a31f2cc04f65
community/python-psycopg2 2.6.2-2 → 2.7-1 git-svn-id: file:///srv/repos/svn-community/svn@201380 9fca08f4-af9d-4005-b8df-a31f2cc04f65
community/python2-memcached 1.54-2 → 1.57-1 git-svn-id: file:///srv/repos/svn-community/svn@133225 9fca08f4-af9d-4005-b8df-a31f2cc04f65
packages/django 1.8.7 -1 → 1.9-1 git-svn-id: file:///srv/repos/svn-packages/svn@252064 eb2447ed-0c53-47e4-bac8-5bc4a241df78
packages/python-markupsafe 0.24-4 → 1.0-1 git-svn-id: file:///srv/repos/svn-packages/svn@284569 eb2447ed-0c53-47e4-bac8-5bc4a241df78
Diffstat (limited to 'libre/django1.8/PKGBUILD')
-rw-r--r-- | libre/django1.8/PKGBUILD | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/libre/django1.8/PKGBUILD b/libre/django1.8/PKGBUILD new file mode 100644 index 000000000..a90272910 --- /dev/null +++ b/libre/django1.8/PKGBUILD @@ -0,0 +1,70 @@ +# $Id$ +# Maintainer: Dan McGee <dan@archlinux.org> +# Contributor: Shahar Weiss <sweiss4@gmx.net> + +pkgbase=django +pkgname=('python-django' 'python2-django') +pkgver=1.8.7 +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' 'python' 'python-setuptools') +source=("https://www.djangoproject.com/m/releases/${pkgver:0:3}/Django-$pkgver.tar.gz") +md5sums=('44c01355b5efa01938a89b8bd798b1ed') +sha256sums=('17a66de5cf59b5ee81c3dc57609b145bb45adddc0dc06937b998597d6e7b4523') + +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 + + cd "$srcdir/Django-$pkgver-python2" + python2 setup.py build +} + +package_python-django() { + depends=('python' 'python-setuptools') + 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 +} + +package_python2-django() { + depends=('python2' 'python2-setuptools') + optdepends=('mysql-python: for MySQL backend' + 'python2-psycopg2: for PostgreSQL backend') + replaces=('django') + conflicts=('django') + cd "$srcdir/Django-$pkgver-python2" + 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 +} |