void-packages/srcpkgs/python-Django/template
2016-10-08 19:51:54 +02:00

38 lines
1 KiB
Bash

# Template file for 'python-Django'
pkgname=python-Django
version=1.10.2
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-setuptools"
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=e127f12a0bfb34843b6e8c82f91e26fff6445a7ca91d222c0794174cf97cbce1
alternatives="django:django-admin:/usr/bin/django-admin2.7"
post_install() {
vlicense LICENSE
rm -f ${DESTDIR}/usr/bin/django-admin.py*
}
python3.4-Django_package() {
noarch=yes
pycompile_version="3.4"
pycompile_module="django"
depends="python3.4-setuptools"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="django:django-admin:/usr/bin/django-admin3.4"
pkg_install() {
vmove usr/bin/*3.4
vmove usr/lib/python3.4
vlicense LICENSE
}
}