35 lines
1000 B
Bash
35 lines
1000 B
Bash
# Template file for 'python-httplib2'
|
|
pkgname=python-httplib2
|
|
version=0.11.0
|
|
revision=1
|
|
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=5c0138b53a2f13b1dc29707b75c04236e35247d6b5f2a14c930966e8f45ce3cc
|
|
noarch=yes
|
|
|
|
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"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|