# Maintainer: pkgname=py2-backports.ssl_match_hostname _pkgname=backports.ssl_match_hostname pkgver=3.5.0.1 pkgrel=1 pkgdesc="The ssl.match_hostname() function from Python 3.4" url="https://bitbucket.org/brandon/backports.ssl_match_hostname" arch="noarch" license="PSF" provides="py-$_pkgname" replaces="py-$_pkgname" depends="python2" makedepends="py-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python2 setup.py build } package() { cd "$builddir" python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 } md5sums="c03fc5e2c7b3da46b81acf5cbacfe1e6 backports.ssl_match_hostname-3.5.0.1.tar.gz" sha256sums="502ad98707319f4a51fa2ca1c677bd659008d27ded9f6380c79e8932e38dcdf2 backports.ssl_match_hostname-3.5.0.1.tar.gz" sha512sums="414c2b6f302a4655c3db3ef09e1dca4916ae4e8c4aa69e43c63bbb920303ea4b2618150c2c35d8a2e1e1283b1d65ccd10a350888fd771addda533c19c20b7e82 backports.ssl_match_hostname-3.5.0.1.tar.gz"