39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# Template file for 'python-WTForms'
|
|
pkgname=python-WTForms
|
|
version=2.1
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="wtforms"
|
|
hostmakedepends="python-setuptools python3-setuptools unzip"
|
|
depends="python"
|
|
short_desc="Forms validation and rendering library for Python2"
|
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
|
license="BSD"
|
|
homepage="http://wtforms.simplecodes.com/"
|
|
distfiles="${PYPI_SITE}/W/WTForms/WTForms-${version}.zip"
|
|
checksum=ffdf10bd1fa565b8233380cb77a304cd36fd55c73023e91d4b803c96bc11d46f
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3-WTForms_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="wtforms"
|
|
replaces="python3.4-WTForms>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|
|
python3.4-WTForms_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-WTForms>=${version}_${revision}"
|
|
}
|