commit dbdbe207893d6c518f315bb593e5372a8c9ab8ee Author: Jaroslav Lichtblau Date: Thu Dec 18 21:35:51 2014 +0100 django-1.4-1.4.16-1 package created and added to AUR required by pootle and it's packages diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d19e0ed815ec --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = django-1.4 + pkgdesc = A high-level Python Web framework that encourages rapid development and clean design + pkgver = 1.4.16 + pkgrel = 1 + url = http://www.djangoproject.com/ + arch = any + license = BSD + makedepends = python2-setuptools + depends = python2 + optdepends = mysql-python: for MySQL backend + optdepends = python2-psycopg2: for PostgreSQL backend + conflicts = python2-django + source = https://www.djangoproject.com/m/releases/1.4/Django-1.4.16.tar.gz + sha256sums = 482315cf32c65ed4a4ee2de257d453430d48ffca9a01b17d984ee0d67354ad12 + +pkgname = django-1.4 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5e47c53ef926 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Jaroslav Lichtblau + +pkgname=django-1.4 +pkgver=1.4.16 +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/" +depends=('python2') +makedepends=('python2-setuptools') +optdepends=('mysql-python: for MySQL backend' + 'python2-psycopg2: for PostgreSQL backend') +conflicts=('python2-django') +source=(https://www.djangoproject.com/m/releases/1.4/Django-$pkgver.tar.gz) +sha256sums=('482315cf32c65ed4a4ee2de257d453430d48ffca9a01b17d984ee0d67354ad12') + +build() { + cd "${srcdir}/Django-$pkgver" + python2 setup.py build +} + +package() { + cd "${srcdir}/Django-$pkgver" + python2 setup.py install --root="$pkgdir" --optimize=1 + + 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 +}