[arch-commits] Commit in python-m2crypto/repos (3 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 4 09:42:21 UTC 2019


    Date: Monday, November 4, 2019 @ 09:42:21
  Author: felixonmars
Revision: 523943

archrelease: copy trunk to community-staging-x86_64

Added:
  python-m2crypto/repos/community-staging-x86_64/
  python-m2crypto/repos/community-staging-x86_64/LICENSE
    (from rev 523940, python-m2crypto/trunk/LICENSE)
  python-m2crypto/repos/community-staging-x86_64/PKGBUILD
    (from rev 523940, python-m2crypto/trunk/PKGBUILD)

----------+
 LICENSE  |   26 ++++++++++++++++++++++++++
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

Copied: python-m2crypto/repos/community-staging-x86_64/LICENSE (from rev 523940, python-m2crypto/trunk/LICENSE)
===================================================================
--- community-staging-x86_64/LICENSE	                        (rev 0)
+++ community-staging-x86_64/LICENSE	2019-11-04 09:42:21 UTC (rev 523943)
@@ -0,0 +1,26 @@
+Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved.
+
+Portions copyright (c) 2004-2006 Open Source Applications Foundation. 
+All rights reserved.
+
+Portions copyright (c) 2005-2006 Vrije Universiteit Amsterdam. 
+All rights reserved.
+
+Copyright (c) 2008-2010 Heikki Toivonen. All rights reserved.
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
+provided that the above copyright notice appear in all copies and that
+both that copyright notice and this permission notice appear in
+supporting documentation.
+
+THE AUTHOR PROVIDES THIS SOFTWARE ``AS IS'' AND ANY EXPRESSED OR 
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  
+IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copied: python-m2crypto/repos/community-staging-x86_64/PKGBUILD (from rev 523940, python-m2crypto/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-11-04 09:42:21 UTC (rev 523943)
@@ -0,0 +1,48 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Angel Velasquez <angvp at archlinux.org> 
+# Contributor: Sergej Pupykin <sergej at aur.archlinux.org>
+# Contributor: William Rea <sillywilly at gmail.com>
+
+pkgbase=python-m2crypto
+pkgname=(python2-m2crypto python-m2crypto)
+pkgver=0.35.2
+pkgrel=2
+pkgdesc="A crypto and SSL toolkit for Python"
+arch=('x86_64')
+url="https://pypi.python.org/pypi/M2Crypto"
+license=('BSD')
+makedepends=('python' 'python-setuptools'
+             'python2' 'python2-setuptools'
+	     'swig')
+source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/m2crypto/m2crypto/repository/${pkgver}/archive.tar.gz"
+	"LICENSE")
+sha256sums=('57220b06de0622d0fad464ec2f16abe6f7aaa6d8ab5ab11372e6a17d7b52550b'
+            '4eca478396f4b2b020729a111fce3f096456d74500bfd8f2b0388c3c69f997c0')
+
+prepare() {
+  mv m2crypto-${pkgver}-* m2crypto-${pkgver}
+  cp -a m2crypto-$pkgver{,-py2}
+}
+
+build(){
+  cd "$srcdir/m2crypto-$pkgver-py2"
+  python2 setup.py build
+
+  cd "$srcdir/m2crypto-$pkgver"
+  python setup.py build
+
+}
+
+package_python2-m2crypto() {
+  depends=('python2' 'openssl' 'python2-typing')
+  cd "${srcdir}/m2crypto-${pkgver}-py2"
+  python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+  install -D -m644 "$srcdir"/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python-m2crypto() {
+  depends=('python' 'openssl')
+  cd "${srcdir}/m2crypto-${pkgver}"
+  python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+  install -D -m644 "$srcdir"/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list