[arch-commits] Commit in python-pyasn1/trunk (PKGBUILD)

Eric Bélanger eric at nymeria.archlinux.org
Fri May 3 16:40:42 EDT 2013


    Date: Friday, May 3, 2013 @ 22:40:42
  Author: eric
Revision: 184208

upgpkg: python-pyasn1 0.1.7-1

Upstream update, Add check function

Modified:
  python-pyasn1/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-03 19:50:52 UTC (rev 184207)
+++ PKGBUILD	2013-05-03 20:40:42 UTC (rev 184208)
@@ -4,7 +4,7 @@
 
 pkgbase=python-pyasn1
 pkgname=('python-pyasn1' 'python2-pyasn1')
-pkgver=0.1.4
+pkgver=0.1.7
 pkgrel=1
 arch=('any')
 url="http://sourceforge.net/projects/pyasn1/"
@@ -13,13 +13,19 @@
 replaces=('pyasn1')
 provides=('pyasn1')
 source=(http://downloads.sourceforge.net/sourceforge/pyasn1/pyasn1-${pkgver}.tar.gz)
-sha1sums=('1a766a6f999114240a91106a97112553aed9b081')
+sha1sums=('e32b91c5a5d9609fb1d07d8685a884bab22ca6d0')
 
+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 "${srcdir}/pyasn1-${pkgver}"
+  cd pyasn1-${pkgver}
   python setup.py install --root="${pkgdir}"
   install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
@@ -28,7 +34,7 @@
   pkgdesc="ASN.1 library for Python 2"
   depends=('python2')
 
-  cd "${srcdir}/pyasn1-${pkgver}"
+  cd pyasn1-${pkgver}
   python2 setup.py install --root="${pkgdir}"
   install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }



More information about the arch-commits mailing list