# Compiling Time: 0.01 SBU
# Maintainer: Pingax <pingax@frugalware.org>
# Contributor: bouleetbil <bouleetbil@frogdev.info>

pkgname=python3-babel
pkgver=2.14.0
pkgrel=2
_core=42
pkgdesc="A collection of tools for internationalizing Python applications"
url="http://babel.edgewall.org"
depends=('python3>=3.12' 'python3-pytz')
makedepends=('python3-setuptools')
_F_archive_name="Sphinx"
options=('nostrip')
groups=('devel-extra')
archs=('x86_64')
_F_archive_name="Babel"
_F_pypi_name="Babel"
Finclude pypi
_F_cd_path="$_F_pypi_name-$pkgver"
source+=("http://unicode.org/Public/cldr/$_core/cldr-common-$_core.0.zip")
sha1sums=('35b4bfeae4c93ee443879103984a2588421b7dc1' \
          'd8b1f3de6ffebf46bf7c9513df9806a03b1ee049')

build() {

	Fcd
	Fexec mkdir -p cldr || Fdie
	Fexec mv ../cldr-common-$_core.0.zip cldr/cldr-common-$_core.0.zip || Fdie

	python3 setup.py import_cldr || Fdie
	python3 setup.py install --root=$Fdestdir || Fdie

}

# optimization OK
