[arch-commits] Commit in python-pyasn1-modules/repos (extra-any extra-any/PKGBUILD)
Felix Yan
fyan at nymeria.archlinux.org
Sun May 18 14:54:11 UTC 2014
Date: Sunday, May 18, 2014 @ 16:54:10
Author: fyan
Revision: 213058
archrelease: copy trunk to extra-any
Added:
python-pyasn1-modules/repos/extra-any/
python-pyasn1-modules/repos/extra-any/PKGBUILD
(from rev 213057, python-pyasn1-modules/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-pyasn1-modules/repos/extra-any/PKGBUILD (from rev 213057, python-pyasn1-modules/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD (rev 0)
+++ extra-any/PKGBUILD 2014-05-18 14:54:10 UTC (rev 213058)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+
+pkgbase=python-pyasn1-modules
+pkgname=('python-pyasn1-modules' 'python2-pyasn1-modules')
+pkgver=0.0.5
+pkgrel=1
+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')
+source=("http://pypi.python.org/packages/source/p/pyasn1-modules/pyasn1-modules-${pkgver}.tar.gz")
+md5sums=('6c5c9dd61a5784ff22695ac233cb11f8')
+
+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 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+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 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
\ No newline at end of file
More information about the arch-commits
mailing list