APP=python-m2crypto
VERSION=0.36.0
BUILD=1sml
HOMEPAGE='https://gitlab.com/m2crypto/m2crypto'
DESC="cryptography toolkit for Python"
REQUIRES="python3 swig"

build() {
  mkandenterbuilddir
  rm -rf M2Crypto-$VERSION

  tar xf $SRCDIR/M2Crypto-$VERSION.tar.?z*
  cd M2Crypto-$VERSION
  fixbuilddirpermissions

  python setup.py install --prefix="" --root=$PKG
  cp CHANGES LICENCE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
5a27b6f75257b907f63600f6cda094f52909a5b0d4dcfa2f2d7e423f89b156cfe1f71718f02b01e167d87c68740c49aeda75c29c30e9b8f9729536e8f824593a  M2Crypto-0.36.0.tar.lz
"
