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

Felix Yan felixonmars at archlinux.org
Thu Jun 7 05:16:52 UTC 2018


    Date: Thursday, June 7, 2018 @ 05:16:52
  Author: felixonmars
Revision: 326115

archrelease: copy trunk to testing-any

Added:
  python-pyasn1/repos/testing-any/
  python-pyasn1/repos/testing-any/PKGBUILD
    (from rev 326114, python-pyasn1/trunk/PKGBUILD)

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

Copied: python-pyasn1/repos/testing-any/PKGBUILD (from rev 326114, python-pyasn1/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2018-06-07 05:16:52 UTC (rev 326115)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=python-pyasn1
+pkgname=('python-pyasn1' 'python2-pyasn1')
+pkgver=0.4.3
+pkgrel=1
+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=('a699b1ef58129860f8448e8c08a7017adfd7ead7844a45197b1026e12760424d20f89a421b3fe8caeab3922448d00a77f717c0a03841c36c6b1d1740b0d9707b')
+
+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