[arch-commits] Commit in python-pyasn1/repos (testing-any testing-any/PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sun Feb 5 22:32:20 UTC 2017
Date: Sunday, February 5, 2017 @ 22:32:19
Author: arojas
Revision: 288112
archrelease: copy trunk to testing-any
Added:
python-pyasn1/repos/testing-any/
python-pyasn1/repos/testing-any/PKGBUILD
(from rev 288111, python-pyasn1/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-pyasn1/repos/testing-any/PKGBUILD (from rev 288111, python-pyasn1/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2017-02-05 22:32:19 UTC (rev 288112)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=python-pyasn1
+pkgname=('python-pyasn1' 'python2-pyasn1')
+pkgver=0.2.1
+pkgrel=1
+arch=('any')
+url="http://sourceforge.net/projects/pyasn1/"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+replaces=('pyasn1')
+provides=('pyasn1')
+source=(https://pypi.io/packages/source/p/pyasn1/pyasn1-$pkgver.tar.gz)
+sha1sums=('91c387f0905fc2ba494ffc45710049fdc5e8952c')
+
+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