diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2019-04-01 20:48:50 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2019-04-01 22:46:48 -0400 |
commit | 4f2fb71e3e62a00a41d5b5f57ab50f6d5301d32b (patch) | |
tree | 0176873b2f00ff5a3b74691443b301a86b1e33a3 /libre/django17/PKGBUILD | |
parent | 7954b0741996a9997e753041fb2b065fe3ecbc6b (diff) | |
download | abslibre-4f2fb71e3e62a00a41d5b5f57ab50f6d5301d32b.tar.gz abslibre-4f2fb71e3e62a00a41d5b5f57ab50f6d5301d32b.tar.bz2 abslibre-4f2fb71e3e62a00a41d5b5f57ab50f6d5301d32b.zip |
Update parabolaweb dependencies
Diffstat (limited to 'libre/django17/PKGBUILD')
-rw-r--r-- | libre/django17/PKGBUILD | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/libre/django17/PKGBUILD b/libre/django17/PKGBUILD deleted file mode 100644 index 492701817..000000000 --- a/libre/django17/PKGBUILD +++ /dev/null @@ -1,72 +0,0 @@ -# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> -# Maintainer (Arch:django): Dan McGee <dan@archlinux.org> -# Contributor (Arch:django): Shahar Weiss <sweiss4@gmx.net> - -pkgbase=django17 -pkgname=('python-django17' 'python2-django17') -pkgver=1.7.9 -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=('python2' 'python2-setuptools' 'python' 'python-setuptools') -source=("https://www.djangoproject.com/m/releases/${pkgver:0:3}/Django-$pkgver.tar.gz") -sha256sums=('4f3f9fe4e5d20ff8ed6a90b5d2f2df2d8fc054e478cdcc3db81c6b29bd217860') - -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-django17() { - depends=('python' 'python-setuptools') - optdepends=('python-psycopg2: for PostgreSQL backend') - provides=("python-django=$pkgver") - conflicts=('python-django') - 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-django17() { - depends=('python2' 'python2-setuptools') - optdepends=('mysql-python: for MySQL backend' - 'python2-psycopg2: for PostgreSQL backend') - replaces=('django') - provides=("python2-django=$pkgver") - conflicts=('django' 'python2-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 -} |