void-packages/srcpkgs/python3-httplib2/template

27 lines
975 B
Bash

# Template file for 'python3-httplib2'
pkgname=python3-httplib2
version=0.18.1
revision=2
create_wrksrc=yes
build_wrksrc="httplib2-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3 ca-certificates"
short_desc="Comprehensive HTTP client library (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
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="8af66c1c52c7ffe1aa5dc4bcd7c769885254b0756e6e69f953c7f0ab49a70ba3
589eec38f72df2be203711d3b8cbece9b908c5e7ff00bc3cab7f63bae9e366b4"
post_install() {
# use system ca certificates
rm -rf ${DESTDIR}/${py3_sitelib}/httplib2/cacerts.txt
ln -sf /etc/ssl/cert.pem ${DESTDIR}/${py3_sitelib}/httplib2/cacerts.txt
vlicense ../LICENSE.txt
}