# This is an example PKGBUILD file. Use this as a start to creating your own, # and remove these comments. For more information, see 'man PKGBUILD'. # NOTE: Please fill out the license field for your package! If it is unknown, # then please put 'unknown'. # Maintainer: Future Linux Team pkgname=python-babel pkgver=2.16.0 _core=45 pkgrel=1 pkgdesc="A collection of tools for internationalizing Python applications" arch=('x86_64') url="http://babel.pocoo.org/" license=("BSD") depends=('python' 'python-pytz') makedepends=('python-setuptools') source=(https://github.com/python-babel/babel/archive/v${pkgver}/${pkgname#*-}-${pkgver}.tar.gz cldr-core-${_core}.zip::http://unicode.org/Public/cldr/${_core}/core.zip cldr-common-${_core}.0.zip::http://unicode.org/Public/cldr/${_core}/cldr-common-${_core}.0.zip) noextract=(cldr-core-${_core}.zip) sha256sums=(8468baea3e88539548a71973a33522cfded775fd0677f1a74b4a9373b4a1ddde 03b6782ec5fc623f85eb54aa7e12555667a015a3b96a6e8f973418c0a894a21f 03b6782ec5fc623f85eb54aa7e12555667a015a3b96a6e8f973418c0a894a21f) prepare() { cd ${pkgname#*-}-${pkgver} cp ${srcdir}/cldr-core-${_core}.zip cldr/cldr-core-${_core}.zip cp ${srcdir}/cldr-common-${_core}.0.zip cldr/cldr-common-${_core}.0.zip } build(){ cd ${pkgname#*-}-${pkgver} python3 setup.py import_cldr python3 setup.py build } package() { cd ${pkgname#*-}-${pkgver} python3 setup.py install --root=${pkgdir} --optimize=1 --skip-build }