[arch-commits] Commit in python-google-api-python-client/repos/community-any (2 files)
Andrzej Giniewicz
aginiewicz at archlinux.org
Thu May 10 10:53:02 UTC 2018
Date: Thursday, May 10, 2018 @ 10:53:02
Author: aginiewicz
Revision: 320187
archrelease: copy trunk to community-any
Added:
python-google-api-python-client/repos/community-any/PKGBUILD
(from rev 320186, python-google-api-python-client/trunk/PKGBUILD)
Deleted:
python-google-api-python-client/repos/community-any/PKGBUILD
----------+
PKGBUILD | 134 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 67 insertions(+), 67 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-05-10 10:52:55 UTC (rev 320186)
+++ PKGBUILD 2018-05-10 10:53:02 UTC (rev 320187)
@@ -1,67 +0,0 @@
-# $Id$
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-# Contributor: shadyabhi <abhijeet.1989 at gmail.com>
-
-# TODO: create package for https://github.com/GoogleCloudPlatform/google-auth-library-python
-# and make it optional backend together with oauth2client
-
-pkgbase=python-google-api-python-client
-pkgname=('python2-google-api-python-client' 'python-google-api-python-client')
-pkgver=1.6.6
-pkgrel=1
-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://github.com/google/google-api-python-client/archive/v${pkgver}.tar.gz")
-md5sums=('238abf38eaa71248f076233e3f3a7cfe')
-
-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
-
- # Workaround for FS#47243
- _site_packages=`python2 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
- chmod -R a+r "$pkgdir$_site_packages"
-}
-
-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
-
- # Workaround for FS#47243
- _site_packages=`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
- chmod -R a+r "$pkgdir$_site_packages"
-}
-
Copied: python-google-api-python-client/repos/community-any/PKGBUILD (from rev 320186, python-google-api-python-client/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-05-10 10:53:02 UTC (rev 320187)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: shadyabhi <abhijeet.1989 at gmail.com>
+
+# TODO: create package for https://github.com/GoogleCloudPlatform/google-auth-library-python
+# and make it optional backend together with oauth2client
+
+pkgbase=python-google-api-python-client
+pkgname=('python2-google-api-python-client' 'python-google-api-python-client')
+pkgver=1.6.7
+pkgrel=1
+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://github.com/google/google-api-python-client/archive/v${pkgver}.tar.gz")
+md5sums=('6de1d777ca78b9e6b52571f5653ce373')
+
+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
+
+ # Workaround for FS#47243
+ _site_packages=`python2 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
+ chmod -R a+r "$pkgdir$_site_packages"
+}
+
+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
+
+ # Workaround for FS#47243
+ _site_packages=`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
+ chmod -R a+r "$pkgdir$_site_packages"
+}
+
More information about the arch-commits
mailing list