41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'python-Flask'
|
|
pkgname=python-Flask
|
|
version=0.12
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="flask"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools 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=93e803cdbe326a61ebd5c5d353959397c85f829bec610d59cb635c9f97d7ca8b
|
|
alternatives="flask:flask:/usr/bin/flask2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-Flask_package() {
|
|
noarch=yes
|
|
replaces="python3.4-Flask>=0"
|
|
pycompile_module="flask"
|
|
depends="python3-setuptools python3-Jinja2 python3-Werkzeug python3-itsdangerous python3-click"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="flask:flask:/usr/bin/flask3"
|
|
pkg_install() {
|
|
vmove usr/bin/flask3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-Flask_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-Flask>=${version}_${revision}"
|
|
}
|