[arch-commits] Commit in python-pyasn1-modules/repos (2 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Sat Dec 24 18:05:14 UTC 2016
Date: Saturday, December 24, 2016 @ 18:05:13
Author: bpiotrowski
Revision: 284678
archrelease: copy trunk to staging-any
Added:
python-pyasn1-modules/repos/staging-any/
python-pyasn1-modules/repos/staging-any/PKGBUILD
(from rev 284677, python-pyasn1-modules/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-pyasn1-modules/repos/staging-any/PKGBUILD (from rev 284677, python-pyasn1-modules/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2016-12-24 18:05:13 UTC (rev 284678)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pyasn1-modules
+pkgname=('python-pyasn1-modules' 'python2-pyasn1-modules')
+pkgver=0.0.8
+pkgrel=2
+pkgdesc="A collection of ASN.1-based protocols modules"
+arch=('any')
+license=('BSD')
+url="http://pypi.python.org/pypi/pyasn1-modules"
+makedepends=('python-pyasn1' 'python2-pyasn1' 'python-setuptools' 'python2-setuptools')
+source=("http://pypi.python.org/packages/source/p/pyasn1-modules/pyasn1-modules-${pkgver}.tar.gz")
+md5sums=('178129bc7fbf07215c25230c5f053f81')
+
+prepare() {
+ cp -a pyasn1-modules-${pkgver}{,-python2}
+}
+
+build() {
+ # Build python 3 module
+ cd pyasn1-modules-${pkgver}
+ python3 setup.py build
+
+ # Build python 2 module
+ cd ../pyasn1-modules-${pkgver}-python2
+ python2 setup.py build
+}
+
+package_python-pyasn1-modules() {
+ depends=('python' 'python-pyopenssl' 'python-pyasn1')
+
+ cd pyasn1-modules-${pkgver}
+ python3 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' 'python2-pyopenssl' 'python2-pyasn1')
+
+ cd pyasn1-modules-${pkgver}-python2
+ 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