From bdca6d6614fd6bd759714e6e50ddfc6cc0bcc297 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Thu, 1 Mar 2018 17:33:32 +0000
Subject: python-pyasn1: update to 0.4.2

---
 abs/core/python_modules/python-pyasn1/PKGBUILD    | 14 +++++++-------
 abs/core/python_modules/python-pyasn1/__changelog |  1 -
 2 files changed, 7 insertions(+), 8 deletions(-)
 delete mode 100644 abs/core/python_modules/python-pyasn1/__changelog

diff --git a/abs/core/python_modules/python-pyasn1/PKGBUILD b/abs/core/python_modules/python-pyasn1/PKGBUILD
index ae8b69c..dbfab2a 100644
--- a/abs/core/python_modules/python-pyasn1/PKGBUILD
+++ b/abs/core/python_modules/python-pyasn1/PKGBUILD
@@ -2,17 +2,17 @@
 # Maintainer: Eric Bélanger <eric@archlinux.org>
 
 pkgbase=python-pyasn1
-pkgname=('python2-pyasn1')
-pkgver=0.1.9
+pkgname=('python-pyasn1' 'python2-pyasn1')
+pkgver=0.4.2
 pkgrel=1
 arch=('any')
 url="http://sourceforge.net/projects/pyasn1/"
 license=('BSD')
-makedepends=('python2-setuptools')
+makedepends=('python-setuptools' 'python2-setuptools')
 replaces=('pyasn1')
 provides=('pyasn1')
-source=(http://downloads.sourceforge.net/sourceforge/pyasn1/pyasn1-${pkgver}.tar.gz)
-sha1sums=('d19599c5d9d039ead21ffcd1a2392c29a838ae03')
+source=(https://pypi.io/packages/source/p/pyasn1/pyasn1-$pkgver.tar.gz)
+sha512sums=('30e7cdfd2f7b182081f951bd94169a300a577f95fbfcb4ddb6dc288617b2776265018d246ae0adb649650ee94aab9122a428313d7a61559f97ed7f02b9670709')
 
 check() {
   cd pyasn1-${pkgver}
@@ -26,7 +26,7 @@ package_python-pyasn1() {
 
   cd pyasn1-${pkgver}
   python setup.py install --root="${pkgdir}"
-  install -D -m 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -D -m 644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
 
 package_python2-pyasn1() {
@@ -35,5 +35,5 @@ package_python2-pyasn1() {
 
   cd pyasn1-${pkgver}
   python2 setup.py install --root="${pkgdir}"
-  install -D -m 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -D -m 644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
diff --git a/abs/core/python_modules/python-pyasn1/__changelog b/abs/core/python_modules/python-pyasn1/__changelog
deleted file mode 100644
index 60db758..0000000
--- a/abs/core/python_modules/python-pyasn1/__changelog
+++ /dev/null
@@ -1 +0,0 @@
-PKGBUILD: remove py3 stuff
-- 
cgit v0.12

