42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'python-httplib2'
|
|
pkgname=python-httplib2
|
|
version=0.10.2
|
|
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=ee10fe4505d1bb5b3d519e9b004cab7a12d10ce160aceab626a00cf5937d8927
|
|
|
|
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}"
|
|
}
|