python-babel 2.14.0-1

This commit is contained in:
xhaa123 2024-04-29 11:22:45 +08:00
commit 003c6c7c73

44
PKGBUILD Normal file
View File

@ -0,0 +1,44 @@
# 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 <future_linux@163.com>
pkgname=python-babel
pkgver=2.14.0
_core=43
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=(ad76eab6905b626d7d4110d2032bc60c69bef225ec94c67d7229425ebe53f659
7800dadb6a11e06ba1475f8c2830aa87e0749ed441c953d8deea60b4baeef592
7800dadb6a11e06ba1475f8c2830aa87e0749ed441c953d8deea60b4baeef592)
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
}