[arch-commits] Commit in python-pyasn1/repos (testing-any testing-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Sep 29 21:31:17 UTC 2017
Date: Friday, September 29, 2017 @ 21:31:17
Author: felixonmars
Revision: 306484
archrelease: copy trunk to testing-any
Added:
python-pyasn1/repos/testing-any/
python-pyasn1/repos/testing-any/PKGBUILD
(from rev 306483, python-pyasn1/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-pyasn1/repos/testing-any/PKGBUILD (from rev 306483, python-pyasn1/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2017-09-29 21:31:17 UTC (rev 306484)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=python-pyasn1
+pkgname=('python-pyasn1' 'python2-pyasn1')
+pkgver=0.3.5
+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)
+sha512sums=('741be92f13451cfb232ccd23392b7cfd22f7ca56fead04c41940b1b3d094da1aef612baf3d2cd8fe63db391b04732745a945e15714e6e8bf488e735c808c99ba')
+
+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