core/python-m2crypto/PKGBUILD

35 lines
1.0 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# Note: needs rebuild against 2.x python. 2.7.x would be fine and is not needed.
pkgname=python-m2crypto
pkgver=0.20.2
pkgrel=4
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' '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 || return 1
python setup.py build
}
package() {
cd "${srcdir}/M2Crypto-${pkgver}"
python setup.py install --root="${pkgdir}/"
install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}