[arch-commits] Commit in (4 files)

Andrzej Giniewicz aginiewicz at archlinux.org
Mon Nov 24 20:28:18 UTC 2014


    Date: Monday, November 24, 2014 @ 21:28:18
  Author: aginiewicz
Revision: 123089

moving python-oauth2client as new python2-google-api-python-client dependency

Added:
  python-oauth2client/
  python-oauth2client/repos/
  python-oauth2client/trunk/
  python-oauth2client/trunk/PKGBUILD

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

Added: python-oauth2client/trunk/PKGBUILD
===================================================================
--- python-oauth2client/trunk/PKGBUILD	                        (rev 0)
+++ python-oauth2client/trunk/PKGBUILD	2014-11-24 20:28:18 UTC (rev 123089)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgbase=python-oauth2client
+pkgname=('python2-oauth2client' 'python-oauth2client')
+pkgver=1.4.2
+pkgrel=0
+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://pypi.python.org/packages/source/o/oauth2client/oauth2client-${pkgver}.tar.gz")
+md5sums=('b6d062fcb774d5c9b156a03d36c5b975')
+
+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=0.1.7' 'python2-pyasn1-modules=0.0.5' 'python2-rsa=3.1.4' 'python2-six')
+
+  cd "$srcdir"/oauth2client-py2-${pkgver}
+
+  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+}
+
+package_python-oauth2client() {
+  depends=('python-httplib2' 'python-pyasn1=0.1.7' 'python-pyasn1-modules=0.0.5' 'python-rsa=3.1.4' 'python-six')
+
+  cd "$srcdir"/oauth2client-${pkgver}
+
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+}
+


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


More information about the arch-commits mailing list