void-packages/srcpkgs/python-Babel/template
2020-03-13 17:33:39 +00:00

32 lines
908 B
Bash

# Template file for 'python-Babel'
pkgname=python-Babel
version=2.8.0
revision=1
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
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=1aac2ae2d0d8ea368fa90906567f5c08463d98ade155c0c4bfedd6a0f7160e38
alternatives="babel:pybabel:/usr/bin/pybabel2"
post_install() {
vlicense LICENSE
}
python3-Babel_package() {
archs=noarch
depends="python3-setuptools python3-pytz"
short_desc="${short_desc/Python2/Python3}"
alternatives="babel:pybabel:/usr/bin/pybabel3"
pkg_install() {
vmove usr/bin/pybabel3
vmove usr/lib/python3*
vlicense LICENSE
}
}