[arch-commits] Commit in (5 files)

Andrzej Giniewicz aginiewicz at archlinux.org
Sat Mar 21 09:53:51 UTC 2015


    Date: Saturday, March 21, 2015 @ 10:53:51
  Author: aginiewicz
Revision: 129664

google-api-python-client now supports python 3

Added:
  python-google-api-python-client/
  python-google-api-python-client/repos/
  python-google-api-python-client/trunk/
  python-google-api-python-client/trunk/PKGBUILD
Deleted:
  python2-google-api-python-client/

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

Added: python-google-api-python-client/trunk/PKGBUILD
===================================================================
--- python-google-api-python-client/trunk/PKGBUILD	                        (rev 0)
+++ python-google-api-python-client/trunk/PKGBUILD	2015-03-21 09:53:51 UTC (rev 129664)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: shadyabhi <abhijeet.1989 at gmail.com>
+
+pkgbase=python-google-api-python-client
+pkgname=('python2-google-api-python-client' 'python-google-api-python-client')
+pkgver=1.4.0
+pkgrel=0
+pkgdesc="Google API Client Library for Python"
+arch=('any')
+url="https://github.com/google/google-api-python-client"
+license=('Apache')
+makedepends=('python2-setuptools' 'python-setuptools' 'python2-httplib2'
+             'python2-oauth2client' 'python2-uritemplate' 'python2-six'
+             'python-httplib2' 'python-oauth2client' 'python-uritemplate'
+             'python-six')
+source=("https://pypi.python.org/packages/source/g/google-api-python-client/google-api-python-client-${pkgver}.tar.gz")
+md5sums=('48e600d261378804bf019c6d26676c1e')
+
+prepare() {
+  cd "$srcdir"
+  cp -a google-api-python-client-${pkgver} google-api-python-client-py2-${pkgver}
+  cd google-api-python-client-py2-${pkgver}
+
+  sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+      -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+      -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
+      -i $(find . -name '*.py')
+}
+
+build() {
+  cd "$srcdir/google-api-python-client-$pkgver"
+
+  msg "Building Python2"
+  cd "$srcdir"/google-api-python-client-py2-${pkgver}
+  python2 setup.py build
+
+  msg "Building Python3"
+  cd "$srcdir"/google-api-python-client-${pkgver}
+  python setup.py build
+}
+ 
+package_python2-google-api-python-client() {
+  depends=('python2-httplib2' 'python2-oauth2client' 'python2-uritemplate' 'python2-six')
+  cd "$srcdir/google-api-python-client-py2-$pkgver"
+ 
+  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+}
+
+package_python-google-api-python-client() {
+  depends=('python-httplib2' 'python-oauth2client' 'python-uritemplate' 'python-six')
+  cd "$srcdir/google-api-python-client-$pkgver"
+ 
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+}
+


Property changes on: python-google-api-python-client/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list