# Template file for 'python-Flask-Script'
pkgname=python-Flask-Script
version=2.0.6
revision=1
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="flask_script"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-Flask"
short_desc="Scripting support for Flask (Python2)"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="BSD"
homepage="https://github.com/smurfix/flask-script"
distfiles="${PYPI_SITE}/F/Flask-Script/Flask-Script-${version}.tar.gz"
checksum=6425963d91054cfcc185807141c7314a9c5ad46325911bd24dcb489bd0161c65

post_install() {
	vlicense LICENSE
}

python3-Flask-Script_package() {
	noarch=yes
	depends="python3-Flask"
	pycompile_module="flask_script"
	replaces="python3.4-Flask-Script>=0"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
python3.4-Flask-Script_package() {
	noarch=yes
	build_style=meta
	short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
	depends="python3-Flask-Script>=${version}_${revision}"
}
