43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'python-Django'
|
|
pkgname=python-Django
|
|
version=1.10.5
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="Django-${version}"
|
|
build_style=python-module
|
|
pycompile_module="django"
|
|
hostmakedepends="python-setuptools python3-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=0db89374b691b9c8b057632a6cd64b18d08db2f4d63b4d4af6024267ab965f8b
|
|
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"
|
|
replaces="python3.4-Django>=0"
|
|
depends="python3-setuptools"
|
|
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
|
|
}
|
|
}
|
|
python3.4-Django_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-Django>=${version}_${revision}"
|
|
}
|