summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-04-15 17:44:18 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-04-15 17:44:18 (GMT)
commit58d0ef608329175456b2831156b4257907566897 (patch)
tree335b4030e92c8661b920e7be09426449d9062b08 /abs/core/python_modules
parentbb091376dfc682e05bae43a2abc60a07ecdda47c (diff)
downloadlinhes_pkgbuild-58d0ef608329175456b2831156b4257907566897.zip
linhes_pkgbuild-58d0ef608329175456b2831156b4257907566897.tar.gz
linhes_pkgbuild-58d0ef608329175456b2831156b4257907566897.tar.bz2
python-cffi: update to 1.5.2
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r--abs/core/python_modules/python-cffi/PKGBUILD49
1 files changed, 29 insertions, 20 deletions
diff --git a/abs/core/python_modules/python-cffi/PKGBUILD b/abs/core/python_modules/python-cffi/PKGBUILD
index 5f75a0e..5a4ef04 100644
--- a/abs/core/python_modules/python-cffi/PKGBUILD
+++ b/abs/core/python_modules/python-cffi/PKGBUILD
@@ -1,44 +1,53 @@
# $Id$
-# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: lilydjwg <lilydjwg@gmail.com>
-_name=cffi
-pkgbase=python-$_name
-pkgname=(python2-$_name)
-pkgver=0.8.2
-pkgrel=4
+pkgbase=python-cffi
+pkgname=(python2-cffi)
+pkgver=1.5.2
+_revision=4640c7bfb3166763943b428bc7ae9d3585e45c34
+pkgrel=1
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")
+makedepends=('python2-setuptools' 'python2-pycparser' 'mercurial')
+checkdepends=('python2-pytest-runner')
+source=("hg+https://felixonmars@bitbucket.org/cffi/cffi#revision=$_revision")
+sha512sums=('SKIP')
prepare() {
- cp -r $_name-$pkgver{,-py2}
+ cp -a cffi{,-py2}
}
build() {
-# cd "$srcdir/$_name-$pkgver"
+# cd "$srcdir/cffi"
# python3 setup.py build
- cd "$srcdir/$_name-$pkgver-py2"
+ cd "$srcdir/cffi-py2"
python2 setup.py build
}
-#package_python-cffi() {
-# depends=('python' 'python-pycparser')
+check() {
+ cd "$srcdir/cffi"
+ python3 setup.py ptr
-# cd "$srcdir/$_name-$pkgver"
-# python3 setup.py install --root="$pkgdir/" --optimize=1
-# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-#}
+ cd "$srcdir/cffi-py2"
+ python2 setup.py ptr
+}
+
+package_python-cffi() {
+ depends=('python-pycparser')
+
+ cd "$srcdir/cffi"
+ python3 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
package_python2-cffi() {
- depends=('python2' 'python2-pycparser')
+ depends=('python2-pycparser')
- cd "$srcdir/$_name-$pkgver-py2"
+ cd "$srcdir/cffi-py2"
python2 setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}