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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:58:26 UTC 2020


    Date: Monday, November 9, 2020 @ 15:58:25
  Author: felixonmars
Revision: 399777

archrelease: copy trunk to staging-any

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

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

Copied: python-pyasn1/repos/staging-any/PKGBUILD (from rev 399776, python-pyasn1/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-11-09 15:58:25 UTC (rev 399777)
@@ -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=3
+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