void-packages/srcpkgs/python-Django/template
2016-03-07 11:07:25 +01:00

39 lines
1.1 KiB
Bash

# Template file for 'python-Django'
pkgname=python-Django
version=1.8.11
revision=1
noarch=yes
wrksrc="Django-${version}"
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="django"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python"
short_desc="High-level Python2 Web framework"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="3-clause-BSD"
homepage="http://www.djangoproject.com/"
distfiles="${PYPI_SITE}/D/Django/Django-${version}.tar.gz"
checksum=ec148be73548da090dd76c2e8c57c98e8b1e84f2cb87500b9be5420187a435fb
post_install() {
vlicense LICENSE
rm -f ${DESTDIR}/usr/bin/django-admin*
vbin build-2.7/scripts-2.7/django-admin.py
ln -s django-admin.py ${DESTDIR}/usr/bin/django-admin
vbin build-3.4/scripts-3.4/django-admin.py django-admin3.py
ln -s django-admin3.py ${DESTDIR}/usr/bin/django-admin3
}
python3.4-Django_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="django"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/bin/django-admin3*
vmove usr/lib/python3.4
vlicense LICENSE
}
}