[arch-commits] Commit in python-pyasn1/trunk (PKGBUILD)
Jelle van der Waa
jelle at gemini.archlinux.org
Mon Nov 29 19:39:57 UTC 2021
Date: Monday, November 29, 2021 @ 19:39:57
Author: jelle
Revision: 429481
upgpkg: python-pyasn1 0.4.8-5
Modified:
python-pyasn1/trunk/PKGBUILD
----------+
PKGBUILD | 24 ++++++------------------
1 file changed, 6 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-29 19:37:21 UTC (rev 429480)
+++ PKGBUILD 2021-11-29 19:39:57 UTC (rev 429481)
@@ -1,13 +1,14 @@
# Maintainer: Eric Bélanger <eric at archlinux.org>
-pkgbase=python-pyasn1
-pkgname=('python-pyasn1' 'python2-pyasn1')
+pkgname=python-pyasn1
pkgver=0.4.8
-pkgrel=4
+pkgrel=5
arch=('any')
url="https://github.com/etingof/pyasn1"
license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
+pkgdesc="ASN.1 library for Python 3"
+depends=('python')
+makedepends=('python-setuptools')
replaces=('pyasn1')
provides=('pyasn1')
source=(https://pypi.io/packages/source/p/pyasn1/pyasn1-$pkgver.tar.gz)
@@ -15,24 +16,11 @@
check() {
cd pyasn1-${pkgver}
- python2 setup.py test
python setup.py test
}
-package_python-pyasn1() {
- pkgdesc="ASN.1 library for Python 3"
- depends=('python')
-
+package() {
cd pyasn1-${pkgver}
python setup.py install --root="${pkgdir}"
install -D -m 644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-
-package_python2-pyasn1() {
- pkgdesc="ASN.1 library for Python 2"
- depends=('python2')
-
- cd pyasn1-${pkgver}
- python2 setup.py install --root="${pkgdir}"
- install -D -m 644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
More information about the arch-commits
mailing list