mirror of
https://github.com/archlinux/aur.git
synced 2026-03-07 16:29:30 +01:00
django-1.4-1.4.16-1
package created and added to AUR required by pootle and it's packages
This commit is contained in:
commit
dbdbe20789
2 changed files with 53 additions and 0 deletions
17
.SRCINFO
Normal file
17
.SRCINFO
Normal file
|
|
@ -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
|
||||
|
||||
36
PKGBUILD
Normal file
36
PKGBUILD
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue