Date: Monday, September 16, 2013 @ 15:44:43 Author: dan Revision: 194452
archrelease: copy trunk to extra-any Added: django/repos/extra-any/PKGBUILD (from rev 194451, django/trunk/PKGBUILD) Deleted: django/repos/extra-any/PKGBUILD ----------+ PKGBUILD | 110 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2013-09-16 13:44:37 UTC (rev 194451) +++ PKGBUILD 2013-09-16 13:44:43 UTC (rev 194452) @@ -1,55 +0,0 @@ -# $Id$ -# Maintainer: Dan McGee <d...@archlinux.org> -# Contributor: Shahar Weiss <swei...@gmx.net> - -pkgbase=django -pkgname=('python-django' 'python2-django') -pkgver=1.5.3 -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=('1581e28b4aeb269c34a9b0417e103aaa') -sha256sums=('e0fd8dec0497ed98e8e03bd5297064f276f203f4c192f252231a3f25187b59b5') - -build() { - cd "$srcdir/Django-$pkgver" - python2 setup.py build -} - -package_python-django() { - depends=('python') - optdepends=('python-psycopg2: for PostgreSQL backend') - cd "$srcdir/Django-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 - - mv "$pkgdir"/usr/bin/django-admin.py "$pkgdir"/usr/bin/django-admin3.py - install -Dm644 extras/django_bash_completion \ - "$pkgdir"/usr/share/bash-completion/completions/django-admin3.py - - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -package_python2-django() { - depends=('python2') - optdepends=('mysql-python: for MySQL backend' - 'python2-psycopg2: for PostgreSQL backend') - replaces=('django') - conflicts=('django') - cd "$srcdir/Django-$pkgver" - python2 setup.py install --root="$pkgdir" --optimize=1 - - ln -s django-admin.py "$pkgdir"/usr/bin/django-admin2.py - 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/manage.py - - find "$pkgdir"/usr/lib/python2.7/site-packages/django/ -name '*.py' | \ - xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" - - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} Copied: django/repos/extra-any/PKGBUILD (from rev 194451, django/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2013-09-16 13:44:43 UTC (rev 194452) @@ -0,0 +1,55 @@ +# $Id$ +# Maintainer: Dan McGee <d...@archlinux.org> +# Contributor: Shahar Weiss <swei...@gmx.net> + +pkgbase=django +pkgname=('python-django' 'python2-django') +pkgver=1.5.4 +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=('b2685469bb4d1fbb091316e21f4108de') +sha256sums=('428defe3fd515dfc8613039bb0a80622a13fb4b988c5be48db07ec098ea1704e') + +build() { + cd "$srcdir/Django-$pkgver" + python2 setup.py build +} + +package_python-django() { + depends=('python') + optdepends=('python-psycopg2: for PostgreSQL backend') + cd "$srcdir/Django-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 + + mv "$pkgdir"/usr/bin/django-admin.py "$pkgdir"/usr/bin/django-admin3.py + install -Dm644 extras/django_bash_completion \ + "$pkgdir"/usr/share/bash-completion/completions/django-admin3.py + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-django() { + depends=('python2') + optdepends=('mysql-python: for MySQL backend' + 'python2-psycopg2: for PostgreSQL backend') + replaces=('django') + conflicts=('django') + cd "$srcdir/Django-$pkgver" + python2 setup.py install --root="$pkgdir" --optimize=1 + + ln -s django-admin.py "$pkgdir"/usr/bin/django-admin2.py + 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/manage.py + + find "$pkgdir"/usr/lib/python2.7/site-packages/django/ -name '*.py' | \ + xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}