39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# Template file for 'python-httplib2'
|
|
pkgname=python-httplib2
|
|
version=0.9.2
|
|
revision=3
|
|
noarch=yes
|
|
patch_args="-Np1"
|
|
wrksrc="httplib2-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python ca-certificates"
|
|
pycompile_module="httplib2"
|
|
short_desc="A comprehensive HTTP client library (Python2)"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="https://github.com/httplib2/httplib2"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/h/httplib2/httplib2-${version}.tar.gz"
|
|
checksum=c3aba1c9539711551f4d83e857b316b5134a1c4ddce98a875b7027be7dd6d988
|
|
|
|
post_extract() {
|
|
chmod -R a+rX .
|
|
}
|
|
|
|
python3-httplib2_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="httplib2"
|
|
replaces="python3.4-httplib2>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-httplib2_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-httplib2>=${version}_${revision}"
|
|
}
|