35 lines
1002 B
Bash
35 lines
1002 B
Bash
# Template file for 'python-httplib2'
|
|
pkgname=python-httplib2
|
|
version=0.12.0
|
|
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="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/httplib2/httplib2"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/h/httplib2/httplib2-${version}.tar.gz"
|
|
checksum=f61fb838a94ce3b349aa32c92fd8430f7e3511afdb18bf9640d647e30c90a6d6
|
|
|
|
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*
|
|
}
|
|
}
|