2024-04-29 11:22:45 +08:00
|
|
|
# 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
|
2024-11-03 19:41:56 +08:00
|
|
|
pkgver=2.16.0
|
|
|
|
_core=45
|
2024-04-29 11:22:45 +08:00
|
|
|
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
|
2024-11-03 19:41:56 +08:00
|
|
|
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)
|
2024-04-29 11:22:45 +08:00
|
|
|
noextract=(cldr-core-${_core}.zip)
|
2024-11-03 19:41:56 +08:00
|
|
|
sha256sums=(8468baea3e88539548a71973a33522cfded775fd0677f1a74b4a9373b4a1ddde
|
|
|
|
03b6782ec5fc623f85eb54aa7e12555667a015a3b96a6e8f973418c0a894a21f
|
|
|
|
03b6782ec5fc623f85eb54aa7e12555667a015a3b96a6e8f973418c0a894a21f)
|
2024-04-29 11:22:45 +08:00
|
|
|
|
|
|
|
prepare() {
|
2024-11-03 19:41:56 +08:00
|
|
|
cd ${pkgname#*-}-${pkgver}
|
2024-04-29 11:22:45 +08:00
|
|
|
|
2024-11-03 19:41:56 +08:00
|
|
|
cp ${srcdir}/cldr-core-${_core}.zip cldr/cldr-core-${_core}.zip
|
|
|
|
cp ${srcdir}/cldr-common-${_core}.0.zip cldr/cldr-common-${_core}.0.zip
|
2024-04-29 11:22:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build(){
|
2024-11-03 19:41:56 +08:00
|
|
|
cd ${pkgname#*-}-${pkgver}
|
2024-04-29 11:22:45 +08:00
|
|
|
|
2024-11-03 19:41:56 +08:00
|
|
|
python3 setup.py import_cldr
|
|
|
|
python3 setup.py build
|
2024-04-29 11:22:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-11-03 19:41:56 +08:00
|
|
|
cd ${pkgname#*-}-${pkgver}
|
2024-04-29 11:22:45 +08:00
|
|
|
|
2024-11-03 19:41:56 +08:00
|
|
|
python3 setup.py install --root=${pkgdir} --optimize=1 --skip-build
|
2024-10-16 01:11:02 +08:00
|
|
|
}
|