Date: Monday, February 12, 2018 @ 09:41:40
  Author: svenstaro
Revision: 292880

upgpkg: python-idna_ssl 1.0.0-1

Modified:
  python-idna_ssl/trunk/PKGBUILD

----------+
 PKGBUILD |   44 ++++++++++++++------------------------------
 1 file changed, 14 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-02-12 09:32:45 UTC (rev 292879)
+++ PKGBUILD    2018-02-12 09:41:40 UTC (rev 292880)
@@ -1,49 +1,33 @@
 # Maintainer: Sven-Hendrik Haase <svenst...@gmail.com>
 
-pkgbase=python-idna_ssl
-pkgname=('python-idna_ssl' 'python2-idna_ssl')
+pkgname=python-idna_ssl
 pkgver=1.0.0
 pkgrel=1
 pkgdesc="Patch ssl.match_hostname for Unicode(idna_ssl) domains support"
 arch=('any')
-license=('BSD')
+license=('MIT')
 url="https://github.com/aio-libs/idna_ssl";
-makedepends=('python-setuptools' 'python0-setuptools')
+depends=('python')
+makedepends=('python-setuptools' 'python2-setuptools')
 source=("https://pypi.io/packages/source/i/idna_ssl/idna_ssl-$pkgver.tar.gz";)
-sha512sums=('cb5dbfab44c4d11521c67f9d29391f184d1267a3da6dc89f4ed12c60a7a909d5c7474c3ea2bddd0af7063f4f620e87a8dd586bb07e8b961b30b1dd7c969704c2')
+sha512sums=('d1f7479cc3edff164bb26deb05af757906ba91241bc668f1b087560087a89f741a0b36e166bfb8142128ceed6008621ab36a2556ed2304ea6374c19982bc663a')
 
 prepare() {
-   cp -a idna_ssl-$pkgver{,-py2}
+  sed -i "s/aiohttp.*'/aiohttp==2.3.10'/" idna_ssl-$pkgver/setup.py
 }
 
 build() {
-   cd "$srcdir"/idna_ssl-$pkgver
-   python setup.py build
-
-   cd "$srcdir"/idna_ssl-$pkgver-py2
-   python2 setup.py build
+  cd "$srcdir"/idna_ssl-$pkgver
+  python setup.py build
 }
 
 check() {
-   cd "$srcdir"/idna_ssl-$pkgver
-   python setup.py test
-
-   cd "$srcdir"/idna_ssl-$pkgver-py2
-   python2 setup.py test
+  cd "$srcdir"/idna_ssl-$pkgver
+  python setup.py test
 }
 
-package_python-idna_ssl() {
-   depends=('python')
-
-   cd idna_ssl-$pkgver
-   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-   install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+package() {
+  cd idna_ssl-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-idna_ssl() {
-   depends=('python2')
-
-   cd idna_ssl-$pkgver-py2
-   python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-   install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
-}

Reply via email to