34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# Template file for 'python-oauth2client'
|
|
pkgname=python-oauth2client
|
|
version=2.0.2
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
pycompile_module="oauth2client"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python-httplib2 python-pyasn1 python-pyasn1-modules python-rsa python-six"
|
|
short_desc="Python2 OAuth 2.0 client library"
|
|
maintainer="Peter Bui <pnutzh4x0r@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/google/oauth2client/"
|
|
distfiles="${PYPI_SITE}/o/oauth2client/oauth2client-${version}.tar.gz"
|
|
checksum=c9f7bf68e9d0f9ec055f1f2f487e5ea53b97b7a2b82f01d48d9a9bb68239535a
|
|
|
|
pre_build() {
|
|
sed -i '/^#!/d' oauth2client/util.py
|
|
}
|
|
|
|
python3.4-oauth2client_package() {
|
|
noarch=yes
|
|
depends="python3.4-httplib2 python3.4-pyasn1 python3.4-pyasn1-modules
|
|
python3.4-rsa python3.4-six"
|
|
pycompile_version="3.4"
|
|
pycompile_module="oauth2client"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
}
|
|
}
|