aboutsummaryrefslogtreecommitdiffstats
path: root/main/py2-backports.ssl_match_hostname
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-10-02 15:57:11 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-10-02 16:04:49 +0200
commit1abd176afbbd884e8df61fcde146b931a3237313 (patch)
treedeba4113077a95f34579ef80ff3fb4ce61a9c656 /main/py2-backports.ssl_match_hostname
parent73172b26d892fa642f265d75fb53b5c4d888b7b4 (diff)
downloadaports-1abd176afbbd884e8df61fcde146b931a3237313.tar.bz2
aports-1abd176afbbd884e8df61fcde146b931a3237313.tar.xz
main/py-backports.ssl_match_hostname: rename to py2-*
Diffstat (limited to 'main/py2-backports.ssl_match_hostname')
-rw-r--r--main/py2-backports.ssl_match_hostname/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/py2-backports.ssl_match_hostname/APKBUILD b/main/py2-backports.ssl_match_hostname/APKBUILD
new file mode 100644
index 0000000000..2609d3b75e
--- /dev/null
+++ b/main/py2-backports.ssl_match_hostname/APKBUILD
@@ -0,0 +1,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"