void-packages/srcpkgs/python-httplib2/template

42 lines
1.2 KiB
Bash

# Template file for 'python-httplib2'
pkgname=python-httplib2
version=0.10.3
revision=1
noarch=yes
wrksrc="httplib2-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python ca-certificates"
pycompile_module="httplib2"
short_desc="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=e404d3b7bd86c1bc931906098e7c1305d6a3a6dcef141b8bb1059903abb3ceeb
post_install() {
# use system ca certificates
for py_sitelib in $py2_sitelib $py3_sitelib; do
rm -rf ${DESTDIR}/${py_sitelib}/httplib2/cacerts.txt
ln -sf /etc/ssl/cert.pem ${DESTDIR}/${py_sitelib}/httplib2/cacerts.txt
done
}
python3-httplib2_package() {
noarch=yes
depends="python3 ca-certificates"
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}"
}