void-packages/srcpkgs/python-httplib2/template
2019-09-01 13:07:55 +02:00

40 lines
1.3 KiB
Bash

# Template file for 'python-httplib2'
pkgname=python-httplib2
version=0.13.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"
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="6901c8c0ffcf721f9ce270ad86da37bc2b4d32b8802d4a9cec38274898a64044
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
}
}