[arch-commits] Commit in python-pyasn1/repos (staging-any staging-any/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 16:11:25 UTC 2019
Date: Friday, October 25, 2019 @ 16:11:24
Author: foutrelis
Revision: 365673
archrelease: copy trunk to staging-any
Added:
python-pyasn1/repos/staging-any/
python-pyasn1/repos/staging-any/PKGBUILD
(from rev 365672, python-pyasn1/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-pyasn1/repos/staging-any/PKGBUILD (from rev 365672, python-pyasn1/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2019-10-25 16:11:24 UTC (rev 365673)
@@ -0,0 +1,38 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=python-pyasn1
+pkgname=('python-pyasn1' 'python2-pyasn1')
+pkgver=0.4.7
+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=('b187bb500ad0af3d0c8f8ef249fd40d9a1d152a8755e9454f441febb3522245f5447f83a70294f33c0b3a537a214a4fec660b9baf80ebef5f6256bcaedeb8abd')
+
+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