[arch-commits] Commit in python-babel/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jun 30 04:07:21 UTC 2018
Date: Saturday, June 30, 2018 @ 04:07:21
Author: felixonmars
Revision: 347902
archrelease: copy trunk to community-staging-any
Added:
python-babel/repos/community-staging-any/
python-babel/repos/community-staging-any/PKGBUILD
(from rev 347901, python-babel/trunk/PKGBUILD)
----------+
PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
Copied: python-babel/repos/community-staging-any/PKGBUILD (from rev 347901, python-babel/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-06-30 04:07:21 UTC (rev 347902)
@@ -0,0 +1,65 @@
+# $Id$
+# Maintainer: Morten Linderud <foxboron at archlinux.no>
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor : Giedrius Slavinskas <giedrius25 at gmail.com>
+
+pkgbase=python-babel
+pkgname=(python-babel python2-babel)
+pkgver=2.6.0
+_core=33
+pkgrel=2
+pkgdesc="A collection of tools for internationalizing Python applications"
+url="http://babel.pocoo.org/"
+license=("BSD")
+arch=('any')
+makedepends=('python' 'python2'
+ 'python-setuptools' 'python2-setuptools'
+ 'python-pytz' 'python2-pytz')
+checkdepends=('python-pytest' 'python-pytest-runner' 'python-freezegun'
+ 'python-pytest-runner' 'python2-pytest-runner' 'python2-freezegun')
+noextract=("core-$_core.zip")
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/python-babel/babel/archive/v$pkgver.tar.gz"
+ "core-$_core.zip::http://unicode.org/Public/cldr/$_core/core.zip")
+sha256sums=('f760326e6ae6ce290520aef63c3ee416a9258d7917addb0b6e086fe0e5911432'
+ 'fa3490082c086d21257153609642f54fcf788fcfda4966fe67f3f6daca0d58b9')
+
+prepare() {
+ cp -a babel-$pkgver{,-py2}
+ cp "$srcdir"/core-$_core.zip babel-$pkgver-py2/cldr/core-$_core.0.zip
+ cp "$srcdir"/core-$_core.zip babel-$pkgver/cldr/core-$_core.0.zip
+}
+
+build(){
+ cd "$srcdir/babel-$pkgver"
+ python setup.py import_cldr
+ python setup.py build
+
+ cd "$srcdir/babel-$pkgver-py2"
+ python2 setup.py import_cldr
+ python2 setup.py build
+}
+
+check(){
+ cd "$srcdir/babel-$pkgver"
+ python setup.py pytest
+
+ cd "$srcdir/babel-$pkgver-py2"
+ python2 setup.py pytest
+}
+
+package_python-babel() {
+ depends=('python' 'python-pytz')
+
+ cd "$srcdir"/babel-${pkgver}
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-babel() {
+ depends=('python2' 'python2-pytz')
+
+ cd "$srcdir"/babel-${pkgver}-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ mv "$pkgdir"/usr/bin/pybabel "$pkgdir"/usr/bin/pybabel2
+ install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list