Date: Wednesday, January 15, 2020 @ 17:06:39
  Author: arojas
Revision: 552657

Drop python2

Modified:
  python-rsa/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++----------------------
 1 file changed, 5 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-01-15 16:45:10 UTC (rev 552656)
+++ PKGBUILD    2020-01-15 17:06:39 UTC (rev 552657)
@@ -1,9 +1,8 @@
 # Maintainer: Massimiliano Torromeo <massimiliano.torro...@gmail.com>
 
-pkgbase=python-rsa
-pkgname=(python-rsa python2-rsa)
+pkgname=python-rsa
 pkgver=4.0
-pkgrel=3
+pkgrel=4
 _libname=rsa
 pkgdesc="Pure-Python RSA implementation"
 arch=(any)
@@ -10,7 +9,8 @@
 url="https://stuvel.eu/rsa";
 license=('BSD')
 
source=(https://files.pythonhosted.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz)
-makedepends=(python-setuptools python2-setuptools)
+depends=(python-pyasn1)
+makedepends=(python-setuptools)
 sha256sums=('1a836406405730121ae9823e19c6e806c62bbad73f890574fff50efa4122c487')
 
 build() {
@@ -18,14 +18,9 @@
 
        rm -rf ../buildpy3; mkdir ../buildpy3
        python setup.py build -b ../buildpy3
-
-       rm -rf ../buildpy2; mkdir ../buildpy2
-       python2 setup.py build -b ../buildpy2
 }
 
-package_python-rsa() {
-       depends=(python-pyasn1)
-
+package() {
        cd "$srcdir/$_libname-$pkgver"
        #cd "$srcdir/sybren-python-rsa-8f50f506b4a2"
        rm -rf build; ln -s ../buildpy3 build
@@ -32,15 +27,3 @@
        python setup.py install --skip-build -O1 --root="$pkgdir"
        install -m0644 -D "LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
-
-package_python2-rsa() {
-       depends=(python2-pyasn1)
-
-       cd "$srcdir/$_libname-$pkgver"
-       #cd "$srcdir/sybren-python-rsa-8f50f506b4a2"
-       rm -rf build; ln -s ../buildpy2 build
-       python2 setup.py install --skip-build -O1 --root="$pkgdir"
-       install -m0644 -D "LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-       find "$pkgdir/usr/bin" -type f | while read f; do mv "$f" "$f"2; done
-}

Reply via email to