35 lines
1000 B
Bash
35 lines
1000 B
Bash
# Template file for 'python-httplib2'
|
|
pkgname=python-httplib2
|
|
version=0.11.3
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="httplib2-${version}"
|
|
build_style=python-module
|
|
pycompile_module="httplib2"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python ca-certificates"
|
|
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=e71daed9a0e6373642db61166fa70beecc9bf04383477f84671348c02a04cbdf
|
|
|
|
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
|
|
pycompile_module="httplib2"
|
|
depends="python3 ca-certificates"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|