void-packages/srcpkgs/python-httplib2/template

40 lines
1.2 KiB
Bash

# Template file for 'python-httplib2'
pkgname=python-httplib2
version=0.12.1
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"
distfiles="${PYPI_SITE}/h/httplib2/httplib2-${version}.tar.gz
https://raw.githubusercontent.com/httplib2/httplib2/master/LICENSE>LICENSE.txt"
checksum="4ba6b8fd77d0038769bf3c33c9a96a6f752bc4cdf739701fdcaf210121f399d4
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
}
}