From a96f1f6a926b8f144910f3d575ec218197b8d676 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 30 Apr 2014 21:44:51 +0000 Subject: python-cffi: initial inclusion. dep of python-cryptography. --- abs/core/python_modules/python-cffi/PKGBUILD | 44 +++++++++++++++++++++++++ abs/core/python_modules/python-cffi/__changelog | 1 + 2 files changed, 45 insertions(+) create mode 100644 abs/core/python_modules/python-cffi/PKGBUILD create mode 100644 abs/core/python_modules/python-cffi/__changelog diff --git a/abs/core/python_modules/python-cffi/PKGBUILD b/abs/core/python_modules/python-cffi/PKGBUILD new file mode 100644 index 0000000..5f75a0e --- /dev/null +++ b/abs/core/python_modules/python-cffi/PKGBUILD @@ -0,0 +1,44 @@ +# $Id$ +# Maintainer: Felix Yan +# Contributor: lilydjwg + +_name=cffi +pkgbase=python-$_name +pkgname=(python2-$_name) +pkgver=0.8.2 +pkgrel=4 +pkgdesc="Foreign Function Interface for Python calling C code" +arch=('i686' 'x86_64') +url="http://cffi.readthedocs.org/" +license=('MIT') +makedepends=('python2-setuptools' 'python2-pycparser') +md5sums=('37fc88c62f40d04e8a18192433f951ec') +source=("http://pypi.python.org/packages/source/c/${_name}/${_name}-${pkgver}.tar.gz") + +prepare() { + cp -r $_name-$pkgver{,-py2} +} + +build() { +# cd "$srcdir/$_name-$pkgver" +# python3 setup.py build + + cd "$srcdir/$_name-$pkgver-py2" + python2 setup.py build +} + +#package_python-cffi() { +# depends=('python' 'python-pycparser') + +# cd "$srcdir/$_name-$pkgver" +# python3 setup.py install --root="$pkgdir/" --optimize=1 +# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +#} + +package_python2-cffi() { + depends=('python2' 'python2-pycparser') + + cd "$srcdir/$_name-$pkgver-py2" + python2 setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/abs/core/python_modules/python-cffi/__changelog b/abs/core/python_modules/python-cffi/__changelog new file mode 100644 index 0000000..488d3cf --- /dev/null +++ b/abs/core/python_modules/python-cffi/__changelog @@ -0,0 +1 @@ +PKGBUILD: rm py 3 stuff -- cgit v0.12