[arch-commits] Commit in (4 files)
Felix Yan
fyan at nymeria.archlinux.org
Sun May 18 14:53:31 UTC 2014
Date: Sunday, May 18, 2014 @ 16:53:31
Author: fyan
Revision: 213057
addpkg: python-pyasn1-modules 0.0.5-1
Added:
python-pyasn1-modules/
python-pyasn1-modules/repos/
python-pyasn1-modules/trunk/
python-pyasn1-modules/trunk/PKGBUILD
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Added: python-pyasn1-modules/trunk/PKGBUILD
===================================================================
--- python-pyasn1-modules/trunk/PKGBUILD (rev 0)
+++ python-pyasn1-modules/trunk/PKGBUILD 2014-05-18 14:53:31 UTC (rev 213057)
@@ -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
Property changes on: python-pyasn1-modules/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list