34 lines
955 B
Bash
34 lines
955 B
Bash
# Template file for 'python-Babel'
|
|
pkgname=python-Babel
|
|
version=2.6.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="babel"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-pytz"
|
|
short_desc="Tools for internationalizing Python applications (Python2)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://babel.pocoo.org/"
|
|
license="BSD-3-Clause"
|
|
distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz"
|
|
checksum=8cba50f48c529ca3fa18cf81fa9403be176d374ac4d60738b839122dfaaa3d23
|
|
alternatives="babel:pybabel:/usr/bin/pybabel2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-Babel_package() {
|
|
noarch=yes
|
|
depends="python3-setuptools python3-pytz"
|
|
pycompile_module="babel"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="babel:pybabel:/usr/bin/pybabel3"
|
|
pkg_install() {
|
|
vmove usr/bin/pybabel3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|