void-packages/srcpkgs/python-httplib2/template

40 lines
1.2 KiB
Bash

# Template file for 'python-httplib2'
pkgname=python-httplib2
version=0.14.0
revision=3
archs=noarch
create_wrksrc=yes
build_wrksrc="httplib2-${version}"
build_style=python-module
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="34537dcdd5e0f2386d29e0e2c6d4a1703a3b982d34c198a5102e6e5d6194b107
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
depends="python3 ca-certificates"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense ../LICENSE.txt
}
}