void-packages/srcpkgs/python-Django/template

38 lines
1.0 KiB
Bash

# Template file for 'python-Django'
pkgname=python-Django
version=1.10.1
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=d6e6c5b25cb67f46afd7c82f536529b11981183423dad8932e15bce93d1a24f3
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
}
}