archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-google-api-python-client / repos / community-any / PKGBUILD
blobfff0ed3b3710fe619f91c7565b41c16a8657d775
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
6 pkgver=2.86.0
7 pkgrel=1
8 pkgdesc="Google API Client Library for Python"
9 arch=('any')
10 url="https://github.com/google/google-api-python-client"
11 license=('Apache')
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')
18 build() {
19   cd "google-api-python-client-${pkgver}"
20   python setup.py build
23 package() {
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"