blob: 2609d3b75eaf221557029e9a740f91d91a23d005 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Peter Bui <pnutzh4x0r@gmail.com>
pkgname=py2-backports.ssl_match_hostname
_pkgname=backports.ssl_match_hostname
pkgver=3.5.0.1
pkgrel=0
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"
|