[arch-commits] Commit in python-babel/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Sep 19 16:36:28 UTC 2015


    Date: Saturday, September 19, 2015 @ 18:36:28
  Author: foutrelis
Revision: 140956

archrelease: copy trunk to community-staging-any

Added:
  python-babel/repos/community-staging-any/
  python-babel/repos/community-staging-any/PKGBUILD
    (from rev 140955, python-babel/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: python-babel/repos/community-staging-any/PKGBUILD (from rev 140955, python-babel/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 16:36:28 UTC (rev 140956)
@@ -0,0 +1,36 @@
+# $Id$
+# 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.0
+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')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/mitsuhiko/babel/archive/$pkgver.tar.gz")
+md5sums=('fb99d9f461f64f051e56a7eaf8d801f3')
+
+package_python-babel() {
+  depends=('python' 'python-pytz')
+
+  cd $srcdir/babel-${pkgver}
+  python3 setup.py import_cldr
+  python3 setup.py install --root=$pkgdir
+  install -D -m0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-babel() {
+  depends=('python2' 'python2-pytz')
+
+  cd $srcdir/babel-${pkgver}
+  python2 setup.py import_cldr
+  python2 setup.py install --root=$pkgdir
+  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