# Template file for 'python-Django'
pkgname=python-Django
version=1.11.9
revision=1
noarch=yes
wrksrc="Django-${version}"
build_style=python-module
pycompile_module="django"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-pytz"
short_desc="High-level Python2 Web framework"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="3-clause-BSD"
homepage="https://www.djangoproject.com/"
distfiles="${PYPI_SITE}/D/Django/Django-${version}.tar.gz"
checksum=353d129f22e1d24980d6061666f435781141c2dfd852f14ffc8a670175821034
alternatives="django:django-admin:/usr/bin/django-admin2"

post_install() {
	vlicense LICENSE
	rm -f ${DESTDIR}/usr/bin/django-admin.py*
}

python3-Django_package() {
	noarch=yes
	pycompile_module="django"
	depends="python3-setuptools python3-pytz"
	short_desc="${short_desc/Python2/Python3}"
	alternatives="django:django-admin:/usr/bin/django-admin3"
	pkg_install() {
		vmove usr/bin/*3
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
