void-packages/srcpkgs/python-Babel/template

35 lines
959 B
Bash

# Template file for 'python-Babel'
pkgname=python-Babel
version=2.7.0
revision=1
archs=noarch
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>"
license="BSD-3-Clause"
homepage="http://babel.pocoo.org/"
distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz"
checksum=e86135ae101e31e2c8ec20a4e0c5220f4eed12487d5cf3f78be7e98d3a57fc28
alternatives="babel:pybabel:/usr/bin/pybabel2"
post_install() {
vlicense LICENSE
}
python3-Babel_package() {
archs=noarch
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
}
}