[arch-commits] Commit in python-oauth2client/repos/community-any (PKGBUILD PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Wed May 31 20:23:27 UTC 2017
Date: Wednesday, May 31, 2017 @ 20:23:26
Author: aginiewicz
Revision: 231663
archrelease: copy trunk to community-any
Added:
python-oauth2client/repos/community-any/PKGBUILD
(from rev 231662, python-oauth2client/trunk/PKGBUILD)
Deleted:
python-oauth2client/repos/community-any/PKGBUILD
----------+
PKGBUILD | 130 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 65 insertions(+), 65 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-31 20:23:18 UTC (rev 231662)
+++ PKGBUILD 2017-05-31 20:23:26 UTC (rev 231663)
@@ -1,65 +0,0 @@
-# $Id$
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-# Contributor: Atlanis <emallson at archlinux.us>
-
-pkgbase=python-oauth2client
-pkgname=('python2-oauth2client' 'python-oauth2client')
-pkgver=4.0.0
-pkgrel=3
-pkgdesc="A client library for OAuth 2.0"
-arch=('any')
-url="https://github.com/google/oauth2client"
-license=('Apache')
-makedepends=('python2-setuptools' 'python-setuptools' 'python-httplib2'
- 'python-pyasn1' 'python-pyasn1-modules' 'python-rsa'
- 'python-six' 'python2-httplib2' 'python2-pyasn1'
- 'python2-pyasn1-modules' 'python2-rsa' 'python2-six')
-source=("https://github.com/google/oauth2client/archive/v${pkgver}.tar.gz")
-md5sums=('c3270b853d66227960b9e04131faf604')
-
-prepare() {
- cd "$srcdir"
-
- cp -a oauth2client-${pkgver} oauth2client-py2-${pkgver}
- cd oauth2client-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() {
- msg "Building Python2"
- cd "$srcdir"/oauth2client-py2-${pkgver}
- python2 setup.py build
-
- msg "Building Python3"
- cd "$srcdir"/oauth2client-${pkgver}
- python setup.py build
-}
-
-package_python2-oauth2client() {
- depends=('python2-httplib2' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-rsa' 'python2-six')
- optdepends=('python2-gflags: for oauth2client.tools.run function')
-
- cd "$srcdir"/oauth2client-py2-${pkgver}
-
- python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
-
- # temporary workaround for FS#52194
- rm -rf "${pkgdir}"/usr/lib/python*/site-packages/tests
-}
-
-package_python-oauth2client() {
- depends=('python-httplib2' 'python-pyasn1' 'python-pyasn1-modules' 'python-rsa' 'python-six')
- optdepends=('python-gflags: for oauth2client.tools.run function')
-
- cd "$srcdir"/oauth2client-${pkgver}
-
- python setup.py install --skip-build --root="$pkgdir" --optimize=1
-
- # temporary workaround for FS#52194
- rm -rf "${pkgdir}"/usr/lib/python*/site-packages/tests
-}
-
Copied: python-oauth2client/repos/community-any/PKGBUILD (from rev 231662, python-oauth2client/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-05-31 20:23:26 UTC (rev 231663)
@@ -0,0 +1,65 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Atlanis <emallson at archlinux.us>
+
+pkgbase=python-oauth2client
+pkgname=('python2-oauth2client' 'python-oauth2client')
+pkgver=4.1.0
+pkgrel=1
+pkgdesc="A client library for OAuth 2.0"
+arch=('any')
+url="https://github.com/google/oauth2client"
+license=('Apache')
+makedepends=('python2-setuptools' 'python-setuptools' 'python-httplib2'
+ 'python-pyasn1' 'python-pyasn1-modules' 'python-rsa'
+ 'python-six' 'python2-httplib2' 'python2-pyasn1'
+ 'python2-pyasn1-modules' 'python2-rsa' 'python2-six')
+source=("https://github.com/google/oauth2client/archive/v${pkgver}.tar.gz")
+md5sums=('7761a9618e328ee539fef4ada5b0c189')
+
+prepare() {
+ cd "$srcdir"
+
+ cp -a oauth2client-${pkgver} oauth2client-py2-${pkgver}
+ cd oauth2client-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() {
+ msg "Building Python2"
+ cd "$srcdir"/oauth2client-py2-${pkgver}
+ python2 setup.py build
+
+ msg "Building Python3"
+ cd "$srcdir"/oauth2client-${pkgver}
+ python setup.py build
+}
+
+package_python2-oauth2client() {
+ depends=('python2-httplib2' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-rsa' 'python2-six')
+ optdepends=('python2-gflags: for oauth2client.tools.run function')
+
+ cd "$srcdir"/oauth2client-py2-${pkgver}
+
+ python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+ # temporary workaround for FS#52194
+ rm -rf "${pkgdir}"/usr/lib/python*/site-packages/tests
+}
+
+package_python-oauth2client() {
+ depends=('python-httplib2' 'python-pyasn1' 'python-pyasn1-modules' 'python-rsa' 'python-six')
+ optdepends=('python-gflags: for oauth2client.tools.run function')
+
+ cd "$srcdir"/oauth2client-${pkgver}
+
+ python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+ # temporary workaround for FS#52194
+ rm -rf "${pkgdir}"/usr/lib/python*/site-packages/tests
+}
+
More information about the arch-commits
mailing list