From 58d0ef608329175456b2831156b4257907566897 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 15 Apr 2016 17:44:18 +0000 Subject: python-cffi: update to 1.5.2 --- abs/core/python_modules/python-cffi/PKGBUILD | 49 ++++++++++++++++------------ 1 file 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 +# Maintainer: Felix Yan # Contributor: lilydjwg -_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" } -- cgit v0.12