36 lines
1004 B
Bash
36 lines
1004 B
Bash
# Template file for 'python-Django'
|
|
pkgname=python-Django
|
|
version=1.11.24
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="Django-${version}"
|
|
build_style=python-module
|
|
pycompile_module="django"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-pytz python-setuptools"
|
|
short_desc="High-level Python2 Web framework"
|
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.djangoproject.com/"
|
|
distfiles="${PYPI_SITE}/D/Django/Django-${version}.tar.gz"
|
|
checksum=215c27453f775b6b1add83a185f76c2e2ab711d17786a6704bd62eabd93f89e3
|
|
alternatives="django:django-admin:/usr/bin/django-admin2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
rm -f ${DESTDIR}/usr/bin/django-admin.py*
|
|
}
|
|
|
|
python3-Django_package() {
|
|
archs=noarch
|
|
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
|
|
}
|
|
}
|