summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-03-01 17:32:14 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-03-01 17:32:14 (GMT)
commite251d51b9c175b8c95a0d8bfd3817ee1343df4eb (patch)
tree79fc322d47289ce578612d19f7cafdde8551bb79 /abs/core/python_modules
parentaedaf4d974c816f7b68a4491be2512321b0fb73b (diff)
downloadlinhes_pkgbuild-e251d51b9c175b8c95a0d8bfd3817ee1343df4eb.zip
linhes_pkgbuild-e251d51b9c175b8c95a0d8bfd3817ee1343df4eb.tar.gz
linhes_pkgbuild-e251d51b9c175b8c95a0d8bfd3817ee1343df4eb.tar.bz2
python-cffi: update to 1.11.5
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r--abs/core/python_modules/python-cffi/PKGBUILD44
-rw-r--r--abs/core/python_modules/python-cffi/__changelog1
2 files changed, 22 insertions, 23 deletions
diff --git a/abs/core/python_modules/python-cffi/PKGBUILD b/abs/core/python_modules/python-cffi/PKGBUILD
index 5a4ef04..fdf8f2f 100644
--- a/abs/core/python_modules/python-cffi/PKGBUILD
+++ b/abs/core/python_modules/python-cffi/PKGBUILD
@@ -3,51 +3,51 @@
# Contributor: lilydjwg <lilydjwg@gmail.com>
pkgbase=python-cffi
-pkgname=(python2-cffi)
-pkgver=1.5.2
-_revision=4640c7bfb3166763943b428bc7ae9d3585e45c34
+pkgname=(python-cffi python2-cffi)
+pkgver=1.11.5
pkgrel=1
pkgdesc="Foreign Function Interface for Python calling C code"
-arch=('i686' 'x86_64')
+arch=('x86_64')
url="http://cffi.readthedocs.org/"
license=('MIT')
-makedepends=('python2-setuptools' 'python2-pycparser' 'mercurial')
-checkdepends=('python2-pytest-runner')
-source=("hg+https://felixonmars@bitbucket.org/cffi/cffi#revision=$_revision")
-sha512sums=('SKIP')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pycparser' 'python2-pycparser')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://bitbucket.org/cffi/cffi/get/v$pkgver.tar.gz")
+sha512sums=('f2f485aa8c541f82a0caef41ef48f7c0b3432208588e4748463fd7ceffb762c645751d66e910b7d56b22cc51a2e99305a626de4abc2f2fae13c6a58009d41651')
prepare() {
- cp -a cffi{,-py2}
+ mv cffi-cffi-* cffi-$pkgver
+ cp -a cffi-$pkgver{,-py2}
}
build() {
-# cd "$srcdir/cffi"
-# python3 setup.py build
+ cd "$srcdir"/cffi-$pkgver
+ python setup.py build
- cd "$srcdir/cffi-py2"
+ cd "$srcdir"/cffi-$pkgver-py2
python2 setup.py build
}
check() {
- cd "$srcdir/cffi"
- python3 setup.py ptr
+ cd "$srcdir"/cffi-$pkgver
+ python setup.py pytest
- cd "$srcdir/cffi-py2"
- python2 setup.py ptr
+ cd "$srcdir"/cffi-$pkgver-py2
+ python2 setup.py pytest
}
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"
+ cd cffi-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-cffi() {
depends=('python2-pycparser')
- cd "$srcdir/cffi-py2"
- python2 setup.py install --root="$pkgdir/" --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ cd cffi-$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
deleted file mode 100644
index 488d3cf..0000000
--- a/abs/core/python_modules/python-cffi/__changelog
+++ /dev/null
@@ -1 +0,0 @@
-PKGBUILD: rm py 3 stuff