34 lines
1.2 KiB
Bash
34 lines
1.2 KiB
Bash
# Template file for 'python-google-api-python-client'
|
|
pkgname=python-google-api-python-client
|
|
version=1.5.4
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="apiclient googleapiclient"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-httplib2 python-oauth2client python-uritemplate python-six"
|
|
short_desc="Google API client library for Python2"
|
|
maintainer="Peter Bui <pnutzh4x0r@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/google/google-api-python-client/"
|
|
distfiles="${PYPI_SITE}/g/google-api-python-client/google-api-python-client-${version}.tar.gz"
|
|
checksum=b9f6697cf9d2d556e8241c18518f1f9a2531e71b59703d0d1505bb47e97009ac
|
|
|
|
python3-google-api-python-client_package() {
|
|
noarch=yes
|
|
depends="python3-httplib2 python3-oauth2client python3-uritemplate python3-six"
|
|
pycompile_module="apiclient googleapiclient"
|
|
replaces="python3.4-google-api-python-client>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-google-api-python-client_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-google-api-python-client>=${version}_${revision}"
|
|
}
|