35 lines
1019 B
Bash
35 lines
1019 B
Bash
# Template file for 'python-Flask'
|
|
pkgname=python-Flask
|
|
version=1.0.2
|
|
revision=1
|
|
archs=noarch
|
|
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>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://flask.pocoo.org"
|
|
distfiles="${PYPI_SITE}/F/Flask/Flask-${version}.tar.gz"
|
|
checksum=2271c0070dbcb5275fad4a82e29f23ab92682dc45f9dfbc22c02ba9b9322ce48
|
|
alternatives="flask:flask:/usr/bin/flask2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-Flask_package() {
|
|
archs=noarch
|
|
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
|
|
}
|
|
}
|