[arch-commits] Commit in python-idna_ssl/repos (community-any community-any/PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Feb 12 09:41:55 UTC 2018


    Date: Monday, February 12, 2018 @ 09:41:52
  Author: svenstaro
Revision: 292881

archrelease: copy trunk to community-any

Added:
  python-idna_ssl/repos/community-any/
  python-idna_ssl/repos/community-any/PKGBUILD
    (from rev 292880, python-idna_ssl/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: python-idna_ssl/repos/community-any/PKGBUILD (from rev 292880, python-idna_ssl/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-02-12 09:41:52 UTC (rev 292881)
@@ -0,0 +1,33 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+
+pkgname=python-idna_ssl
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Patch ssl.match_hostname for Unicode(idna_ssl) domains support"
+arch=('any')
+license=('MIT')
+url="https://github.com/aio-libs/idna_ssl"
+depends=('python')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/i/idna_ssl/idna_ssl-$pkgver.tar.gz")
+sha512sums=('d1f7479cc3edff164bb26deb05af757906ba91241bc668f1b087560087a89f741a0b36e166bfb8142128ceed6008621ab36a2556ed2304ea6374c19982bc663a')
+
+prepare() {
+  sed -i "s/aiohttp.*'/aiohttp==2.3.10'/" idna_ssl-$pkgver/setup.py
+}
+
+build() {
+  cd "$srcdir"/idna_ssl-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/idna_ssl-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd idna_ssl-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list