summaryrefslogtreecommitdiffstats
path: root/abs/extra/python-m2crypto/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/python-m2crypto/PKGBUILD')
-rw-r--r--abs/extra/python-m2crypto/PKGBUILD31
1 files changed, 20 insertions, 11 deletions
diff --git a/abs/extra/python-m2crypto/PKGBUILD b/abs/extra/python-m2crypto/PKGBUILD
index 86a96d1..4e8a1aa 100644
--- a/abs/extra/python-m2crypto/PKGBUILD
+++ b/abs/extra/python-m2crypto/PKGBUILD
@@ -1,22 +1,31 @@
-# $Id: PKGBUILD,v 1.6 2008/11/13 16:04:12 sergej Exp $
-# Maintainer: Sergej Pupykin <sergej@aur.archlinux.org>
+# $Id: PKGBUILD 87898 2010-08-18 16:12:44Z ibiru $
+# Maintainer:
+# Contributor: Sergej Pupykin <sergej@aur.archlinux.org>
# Contributor: William Rea <sillywilly@gmail.com>
pkgname=python-m2crypto
-pkgver=0.19.1
-pkgrel=1
+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=('python' 'swig' 'openssl')
-source=(http://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-$pkgver.tar.gz)
-md5sums=('c92286fdf0a75f017e72122c2832d5ff')
+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
- python setup.py build
- python setup.py install --root=$pkgdir/
+ 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
+ install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}