Date: Wednesday, June 6, 2018 @ 10:25:22 Author: jelle Revision: 326032
archrelease: copy trunk to extra-any Added: django/repos/extra-any/PKGBUILD (from rev 326031, django/trunk/PKGBUILD) Deleted: django/repos/extra-any/PKGBUILD ----------+ PKGBUILD | 111 +++++++++++++++++++++---------------------------------------- 1 file changed, 40 insertions(+), 71 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-06-06 10:25:03 UTC (rev 326031) +++ PKGBUILD 2018-06-06 10:25:22 UTC (rev 326032) @@ -1,71 +0,0 @@ -# $Id$ -# Maintainer: Angel Velasquez <an...@archlinux.org> -# Maintainer: Dan McGee <d...@archlinux.org> -# Contributor: Shahar Weiss <swei...@gmx.net> - -pkgbase=django -pkgname=('python-django' 'python2-django') -pkgver=1.11.13 -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=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/") -sha256sums=('46adfe8e0abe4d1f026c1086889970b611aec492784fbdfbdaabc2457360a4a5') -sha512sums=('9552b76f693d2e47681bc24cc8ee19c9c42e194a21e578f28d1705641b2490a1d9289d9870105fb480ebd3f7ad2746b1bee8382857c55ba632192d72426ada06') - -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' '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 -} - -package_python2-django() { - depends=('python2' 'python2-setuptools' 'python2-pytz') - 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 -} Copied: django/repos/extra-any/PKGBUILD (from rev 326031, django/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-06-06 10:25:22 UTC (rev 326032) @@ -0,0 +1,40 @@ +# $Id$ +# Maintainer: Angel Velasquez <an...@archlinux.org> +# Maintainer: Dan McGee <d...@archlinux.org> +# Contributor: Shahar Weiss <swei...@gmx.net> + +pkgbase=django +pkgname=('python-django') +pkgver=2.0.6 +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=('python' 'python-setuptools') +source=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/") +sha256sums=('3eb25c99df1523446ec2dc1b00e25eb2ecbdf42c9d8b0b8b32a204a8db9011f8') +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 +}