Alessio Sergi 217e7d31f2 srcpkgs: remove python3.4-* transitional dummy packages
After more than a year the switch to python3 packages, it is time to say
them goodbye. So long, and thanks for all the fish.
2017-12-20 11:29:51 +01:00

35 lines
1000 B
Bash

# Template file for 'python-httplib2'
pkgname=python-httplib2
version=0.10.3
revision=2
noarch=yes
wrksrc="httplib2-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python ca-certificates"
pycompile_module="httplib2"
short_desc="Comprehensive HTTP client library (Python2)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://github.com/httplib2/httplib2"
license="MIT"
distfiles="${PYPI_SITE}/h/httplib2/httplib2-${version}.tar.gz"
checksum=e404d3b7bd86c1bc931906098e7c1305d6a3a6dcef141b8bb1059903abb3ceeb
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
}
python3-httplib2_package() {
noarch=yes
depends="python3 ca-certificates"
pycompile_module="httplib2"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}