[arch-commits] Commit in python-babel/repos/community-any (PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Wed Nov 11 19:42:10 UTC 2020


    Date: Wednesday, November 11, 2020 @ 19:42:10
  Author: eschwartz
Revision: 751202

archrelease: copy trunk to community-any

Modified:
  python-babel/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-11 19:41:57 UTC (rev 751201)
+++ PKGBUILD	2020-11-11 19:42:10 UTC (rev 751202)
@@ -4,7 +4,7 @@
 
 pkgbase=python-babel
 pkgname=(python-babel python2-babel)
-pkgver=2.8.0
+pkgver=2.8.1
 _core=36
 pkgrel=4
 pkgdesc="A collection of tools for internationalizing Python applications"
@@ -19,13 +19,17 @@
 noextract=("cldr-core-$_core.zip")
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/python-babel/babel/archive/v$pkgver.tar.gz"
         "cldr-core-$_core.zip::http://unicode.org/Public/cldr/$_core/core.zip")
-sha256sums=('2d4d29e73e85afd10ff260579303b5479b332eadc393663089dceb14ff6f8b9c'
+sha256sums=('2324e41ffb439a83748813e54718574c094222bb32996d466958a7a3d6c23a47'
             '07279e56c1f4266d140b907ef3ec379dce0a99542303a9628562ac5fe460ba43')
+source+=("git+https://github.com/python-babel/babel.git")
+makedepends+=('git')
+sha256sums+=('SKIP')
 
 prepare() {
   cp -a babel-$pkgver{,-py2}
   cp "$srcdir"/cldr-core-$_core.zip babel-$pkgver-py2/cldr/cldr-core-$_core.zip
   cp "$srcdir"/cldr-core-$_core.zip babel-$pkgver/cldr/cldr-core-$_core.zip
+  cp "$srcdir"/cldr-core-$_core.zip babel/cldr/cldr-core-$_core.zip
 }
 
 build(){
@@ -36,9 +40,16 @@
   cd "$srcdir/babel-$pkgver-py2"
   python2 setup.py import_cldr
   python2 setup.py build
+
+  cd "$srcdir/babel"
+  python setup.py import_cldr
+  python setup.py build
 }
 
 check(){
+  cd "$srcdir/babel"
+  python setup.py pytest
+
   cd "$srcdir/babel-$pkgver"
   python setup.py pytest
 



More information about the arch-commits mailing list