void-packages/srcpkgs/python-httplib2/template

41 lines
1.3 KiB
Bash

# Template file for 'python-httplib2'
pkgname=python-httplib2
version=0.13.0
revision=1
archs=noarch
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>"
license="MIT"
homepage="https://github.com/httplib2/httplib2"
changelog="https://raw.githubusercontent.com/httplib2/httplib2/master/CHANGELOG"
distfiles="${PYPI_SITE}/h/httplib2/httplib2-${version}.tar.gz
https://raw.githubusercontent.com/httplib2/httplib2/master/LICENSE>LICENSE.txt"
checksum="d1146939d270f1f1eb8cbf8f5aa72ff37d897faccca448582bb1e180aeb4c6b2
589eec38f72df2be203711d3b8cbece9b908c5e7ff00bc3cab7f63bae9e366b4"
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
vlicense ../LICENSE.txt
}
python3-httplib2_package() {
archs=noarch
pycompile_module="httplib2"
depends="python3 ca-certificates"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense ../LICENSE.txt
}
}