void-packages/srcpkgs/python-backports-ssl-match-hostname/template

26 lines
1 KiB
Text
Raw Normal View History

# Template file for 'python-backports-ssl-match-hostname'
pkgname=python-backports-ssl-match-hostname
version=3.4.0.2
revision=1
noarch=yes
wrksrc="backports.ssl_match_hostname-${version}"
build_style="python-module"
hostmakedepends="python-setuptools"
makedepends="python-devel"
depends="python"
pycompile_module="backports"
short_desc="The ssl.match_hostname() function from Python3"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://bitbucket.org/brandon/backports.ssl_match_hostname"
license="PSF"
distfiles="https://pypi.python.org/packages/source/b/backports.ssl_match_hostname/backports.ssl_match_hostname-${version}.tar.gz"
checksum=07410e7fb09aab7bdaf5e618de66c3dac84e2e3d628352814dc4c37de321d6ae
post_install() {
local python_sitelib="${DESTDIR}/usr/lib/python2.7/site-packages"
local wrksrc_ssl="${wrksrc}/src/backports/ssl_match_hostname"
rm -f ${python_sitelib}/backports/ssl_match_hostname/{LICENSE.txt,README.txt}
vdoc ${wrksrc_ssl}/README.txt README
vlicense ${wrksrc_ssl}/LICENSE.txt LICENSE
}