summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-03-01 17:04:13 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-03-01 17:04:13 (GMT)
commitc61f227362e721cc183757906a777b229adfbe68 (patch)
treebca578cd8d880a03c684fb79a264bcf15e990a58 /abs/core/python_modules
parentd9e2b81a68e7d2ef23768b656c5e40a7f5b26c64 (diff)
downloadlinhes_pkgbuild-c61f227362e721cc183757906a777b229adfbe68.zip
linhes_pkgbuild-c61f227362e721cc183757906a777b229adfbe68.tar.gz
linhes_pkgbuild-c61f227362e721cc183757906a777b229adfbe68.tar.bz2
python-babel: dep of python-sphinx
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r--abs/core/python_modules/python-babel/PKGBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-babel/PKGBUILD b/abs/core/python_modules/python-babel/PKGBUILD
new file mode 100644
index 0000000..fcbdc4b
--- /dev/null
+++ b/abs/core/python_modules/python-babel/PKGBUILD
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Morten Linderud <foxboron@archlinux.no>
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor : Giedrius Slavinskas <giedrius25@gmail.com>
+
+pkgbase=python-babel
+pkgname=(python-babel python2-babel)
+pkgver=2.5.3
+pkgrel=4
+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')
+noextract=("core-28.zip")
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/python-babel/babel/archive/v$pkgver.tar.gz"
+ "core-29.zip::http://unicode.org/Public/cldr/29/core.zip")
+sha256sums=('4c231f28875552abe18c6c10829cec0884d7eeb27423b562357250dc32090cb9'
+ 'b3308f8d3b4a80045ce4262b2784ac8d99775e80aaacafbf1277833f6b28ffda')
+
+prepare() {
+ cp -a babel-$pkgver{,-py2}
+ cp "$srcdir"/core-29.zip babel-$pkgver-py2/cldr/
+ cp "$srcdir"/core-29.zip babel-$pkgver/cldr/
+}
+
+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
+}
+
+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
+}