void-packages/srcpkgs/python-backports.ssl_match_hostname/template
Alessio Sergi 91c1fee99f python-backports.ssl_match_hostname: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-17 10:23:42 +02:00

38 lines
1.2 KiB
Bash

# Template file for 'python-backports.ssl_match_hostname'
pkgname=python-backports.ssl_match_hostname
version=3.5.0.1
revision=2
noarch=yes
wrksrc="backports.ssl_match_hostname-${version}"
build_style=python-module
pycompile_module="backports"
hostmakedepends="python python3"
depends="python-backports"
short_desc="The ssl.match_hostname() function from Python 3.5"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://bitbucket.org/brandon/backports.ssl_match_hostname"
license="PSF"
distfiles="${PYPI_SITE}/b/backports.ssl_match_hostname/backports.ssl_match_hostname-${version}.tar.gz"
checksum=502ad98707319f4a51fa2ca1c677bd659008d27ded9f6380c79e8932e38dcdf2
post_install() {
# namespace provided by python-backports package
rm -f ${DESTDIR}/usr/lib/python*/site-packages/backports/__init__.py
}
python3-backports.ssl_match_hostname_package() {
noarch=yes
depends="python3-backports"
pycompile_module="backports"
replaces="python3.4-backports.ssl_match_hostname>=0"
short_desc="${short_desc}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-backports.ssl_match_hostname_package() {
noarch=yes
build_style=meta
short_desc="${short_desc} (transitional dummy package)"
depends="python3-backports.ssl_match_hostname>=${version}_${revision}"
}