1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 # Maintainer: Morten Linderud <foxboron@archlinux.org>
3 # Contributor: shadyabhi <abhijeet.1989@gmail.com>
5 pkgname=python-google-api-python-client
8 pkgdesc="Google API Client Library for Python"
10 url="https://github.com/google/google-api-python-client"
12 depends=('python-google-auth-httplib2' 'python-uritemplate' 'python-google-api-core')
13 optdepends=('python-oauth2client: optional backend')
14 makedepends=('python-setuptools')
15 source=("google-api-python-client-${pkgver}.tar.gz::https://github.com/google/google-api-python-client/archive/v${pkgver}.tar.gz")
16 sha256sums=('659b472816dd5ca6bd6ccd76b93f8ee71056e599b456a809887bc3c7ac76b647')
19 cd "google-api-python-client-${pkgver}"
24 cd "google-api-python-client-$pkgver"
25 python setup.py install --skip-build --root="$pkgdir" --optimize=1
27 # Workaround for FS#47243
28 _site_packages=`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
29 chmod -R a+r "$pkgdir$_site_packages"