37 lines
1 KiB
Bash
37 lines
1 KiB
Bash
# Template file for 'python-Flask'
|
|
pkgname=python-Flask
|
|
version=0.11.1
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
pycompile_module="flask"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python-Jinja2 python-Werkzeug python-itsdangerous python-click"
|
|
short_desc="Python2 web microframework"
|
|
maintainer="Markus Berger <pulux@pf4sh.de>"
|
|
homepage="http://flask.pocoo.org"
|
|
license="3-clause-BSD"
|
|
distfiles="${PYPI_SITE}/F/Flask/Flask-${version}.tar.gz"
|
|
checksum=b4713f2bfb9ebc2966b8a49903ae0d3984781d5c878591cf2f7b484d28756b0e
|
|
alternatives="flask:flask:/usr/bin/flask2.7"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3.4-Flask_package() {
|
|
noarch=yes
|
|
pycompile_version="3.4"
|
|
pycompile_module="flask"
|
|
depends="python3.4-Jinja2 python3.4-Werkzeug python3.4-itsdangerous
|
|
python3.4-click"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
alternatives="flask:flask:/usr/bin/flask3.4"
|
|
pkg_install() {
|
|
vmove usr/bin/flask3.4
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE
|
|
}
|
|
}
|