[arch-commits] Commit in python-pyasn1-modules/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 20:10:03 UTC 2019
Date: Friday, October 25, 2019 @ 20:10:02
Author: foutrelis
Revision: 365711
archrelease: copy trunk to staging-any
Added:
python-pyasn1-modules/repos/staging-any/
python-pyasn1-modules/repos/staging-any/PKGBUILD
(from rev 365710, python-pyasn1-modules/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-pyasn1-modules/repos/staging-any/PKGBUILD (from rev 365710, python-pyasn1-modules/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2019-10-25 20:10:02 UTC (rev 365711)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pyasn1-modules
+pkgname=('python-pyasn1-modules' 'python2-pyasn1-modules')
+pkgver=0.2.6
+pkgrel=2
+pkgdesc="A collection of ASN.1-based protocols modules"
+arch=('any')
+license=('BSD')
+url="https://pypi.python.org/pypi/pyasn1-modules"
+makedepends=('python-pyasn1' 'python2-pyasn1' 'python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/p/pyasn1-modules/pyasn1-modules-$pkgver.tar.gz")
+sha512sums=('6bf576146f59043bd708abcfdf6614c5a441e6e38c7bac2458491c5dddc42fe25210f0387ee12882391f6265a0e716ccbda547555ca38fbf3e2adf1587c95462')
+
+prepare() {
+ cp -a pyasn1-modules-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/pyasn1-modules-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pyasn1-modules-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/pyasn1-modules-$pkgver
+ PYTHONPATH=. python tests/__main__.py
+
+ cd "$srcdir"/pyasn1-modules-$pkgver-py2
+ PYTHONPATH=. python2 tests/__main__.py
+}
+
+package_python-pyasn1-modules() {
+ depends=('python-pyasn1')
+
+ cd pyasn1-modules-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-pyasn1-modules() {
+ depends=('python2-pyasn1')
+
+ cd pyasn1-modules-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
More information about the arch-commits
mailing list