blob: a173ebeee3c8f4331d8782998b321c506a30803c (
plain)
1 # Description: A collection of tools for internationalizing Python applications
2 # URL: http://babel.pocoo.org/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: python3-pytz python3-setuptools
5
6 name=python3-babel
7 version=2.11.0
8 release=1
9 cldrver=41.0 # $SRC/babel-$version/scripts/download_import_cldr.py
10
11 source=(https://github.com/python-babel/babel/archive/v$version/$name-$version.tar.gz
12 https://unicode.org/Public/cldr/${cldrver::2}/cldr-common-$cldrver.zip)
13
14 unpack_source() {
15 for file in ${source[@]}; do
16 case ${file##*/} in
17 $name-$version.tar.gz)
18 bsdtar -p -o -C $SRC -xf $(get_filename $file) ;;
19 cldr-common-$cldrver.zip)
20 cp $(get_filename $file) $SRC/babel-$version/cldr/cldr-common-$cldrver.zip ;;
21 *)
22 cp $(get_filename $file) $SRC ;;
23 esac
24 done
25 }
26
27 build() {
28 cd babel-$version
29
30 /usr/bin/python3 setup.py import_cldr
31 /usr/bin/python3 setup.py build
32 /usr/bin/python3 setup.py install --root=$PKG \
33 --optimize=1 \
34 --skip-build
35 mv $PKG/usr/bin/pybabel $PKG/usr/bin/py3babel
36 }
|