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

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 17:42:52 UTC 2018


    Date: Saturday, June 30, 2018 @ 17:42:52
  Author: foutrelis
Revision: 348663

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 348661, python-m2crypto/trunk/LICENSE)
  python-m2crypto/repos/community-staging-x86_64/PKGBUILD
    (from rev 348662, python-m2crypto/trunk/PKGBUILD)

----------+
 LICENSE  |   26 ++++++++++++++++++++++++++
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

Copied: python-m2crypto/repos/community-staging-x86_64/LICENSE (from rev 348661, python-m2crypto/trunk/LICENSE)
===================================================================
--- community-staging-x86_64/LICENSE	                        (rev 0)
+++ community-staging-x86_64/LICENSE	2018-06-30 17:42:52 UTC (rev 348663)
@@ -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 348662, python-m2crypto/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-30 17:42:52 UTC (rev 348663)
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 140196 2011-10-09 08:27:16Z angvp $
+# 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.30.1
+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=('02eacd9b47aace718bb64cd2233e225aa44db8d60e9f077fb176a36b79ed14a6'
+            '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