summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-cffi
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-04-30 21:44:51 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-04-30 21:44:51 (GMT)
commita96f1f6a926b8f144910f3d575ec218197b8d676 (patch)
treec4f9b288bc902d4ff65dc82f15ee2881529cdf3b /abs/core/python_modules/python-cffi
parent78d1fe0507d79db6997f85a2cd1022bb7572164c (diff)
downloadlinhes_pkgbuild-a96f1f6a926b8f144910f3d575ec218197b8d676.zip
linhes_pkgbuild-a96f1f6a926b8f144910f3d575ec218197b8d676.tar.gz
linhes_pkgbuild-a96f1f6a926b8f144910f3d575ec218197b8d676.tar.bz2
python-cffi: initial inclusion. dep of python-cryptography.
Diffstat (limited to 'abs/core/python_modules/python-cffi')
-rw-r--r--abs/core/python_modules/python-cffi/PKGBUILD44
-rw-r--r--abs/core/python_modules/python-cffi/__changelog1
2 files changed, 45 insertions, 0 deletions
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 <felixonmars@gmail.com>
+# Contributor: lilydjwg <lilydjwg@gmail.com>
+
+_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