[arch-commits] Commit in python-pyasn1/repos (staging-any staging-any/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sat May 16 12:01:56 UTC 2020


    Date: Saturday, May 16, 2020 @ 12:01:56
  Author: foutrelis
Revision: 384413

archrelease: copy trunk to staging-any

Added:
  python-pyasn1/repos/staging-any/
  python-pyasn1/repos/staging-any/PKGBUILD
    (from rev 384412, python-pyasn1/trunk/PKGBUILD)

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

Copied: python-pyasn1/repos/staging-any/PKGBUILD (from rev 384412, python-pyasn1/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-05-16 12:01:56 UTC (rev 384413)
@@ -0,0 +1,38 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=python-pyasn1
+pkgname=('python-pyasn1' 'python2-pyasn1')
+pkgver=0.4.8
+pkgrel=2
+arch=('any')
+url="https://github.com/etingof/pyasn1"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+replaces=('pyasn1')
+provides=('pyasn1')
+source=(https://pypi.io/packages/source/p/pyasn1/pyasn1-$pkgver.tar.gz)
+sha512sums=('e64e70b325c8067f87ace7c0673149e82fe564aa4b0fa146d29b43cb588ecd6e81b1b82803b8cfa7a17d3d0489b6d88b4af5afb3aa0052bf92e8a1769fe8f7b0')
+
+check() {
+  cd pyasn1-${pkgver}
+  python2 setup.py test
+  python setup.py test
+}
+
+package_python-pyasn1() {
+  pkgdesc="ASN.1 library for Python 3"
+  depends=('python')
+
+  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