From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/python-m2crypto/PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 extra/python-m2crypto/PKGBUILD (limited to 'extra/python-m2crypto/PKGBUILD') diff --git a/extra/python-m2crypto/PKGBUILD b/extra/python-m2crypto/PKGBUILD new file mode 100644 index 000000000..4e8a1aafb --- /dev/null +++ b/extra/python-m2crypto/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 87898 2010-08-18 16:12:44Z ibiru $ +# Maintainer: +# Contributor: Sergej Pupykin +# Contributor: William Rea + +pkgname=python-m2crypto +pkgver=0.20.2 +pkgrel=3 +pkgdesc="A crypto and SSL toolkit for Python" +arch=('i686' 'x86_64') +url="http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto" +license=('BSD') +depends=('python2' 'openssl') +makedepends=('swig') +source=("http://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-${pkgver}.tar.gz" + 'openssl1.patch') +md5sums=('6c24410410d6eb1920ea43f77a93613a' + '80a707ad6610f2871efdf40658e30364') + +build() { + cd "${srcdir}/M2Crypto-${pkgver}" + patch -Np0 -i ${srcdir}/openssl1.patch + python2 setup.py build +} + +package() { + cd "${srcdir}/M2Crypto-${pkgver}" + python2 setup.py install --root="${pkgdir}/" --optimize=1 + + install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} -- cgit v1.2.3-54-g00ecf