[arch-commits] Commit in python-cffi/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Mar 21 12:52:54 UTC 2017


    Date: Tuesday, March 21, 2017 @ 12:52:53
  Author: felixonmars
Revision: 291150

upgpkg: python-cffi 1.10.0-1

Modified:
  python-cffi/trunk/PKGBUILD

----------+
 PKGBUILD |   34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-21 11:11:39 UTC (rev 291149)
+++ PKGBUILD	2017-03-21 12:52:53 UTC (rev 291150)
@@ -4,43 +4,43 @@
 
 pkgbase=python-cffi
 pkgname=(python-cffi python2-cffi)
-pkgver=1.9.1
-_revision=e0ccab2917b55bbf045fe7414705984966dde794
-pkgrel=2
+pkgver=1.10.0
+_revision=486d919c0b87288ec93c7696f75e2105ed4a91fd
+pkgrel=1
 pkgdesc="Foreign Function Interface for Python calling C code"
 arch=('i686' 'x86_64')
 url="http://cffi.readthedocs.org/"
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pycparser' 'python2-pycparser' 'mercurial')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pycparser' 'python2-pycparser')
 checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("hg+https://bitbucket.org/cffi/cffi#revision=$_revision")
-sha512sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://bitbucket.org/cffi/cffi/get/$_revision.tar.gz")
+sha512sums=('5c48f27bdca1568e60ba425f90603ca413b1ea095a83ecc3da073e937c044efd204620fba25d204a9db65d6dfde8cb37a990a347a1816a09e7248733e6f142b3')
 
 prepare() {
-  cp -a cffi{,-py2}
+  cp -a cffi-cffi-${_revision::12}{,-py2}
 }
 
 build() {
-  cd "$srcdir"/cffi
-  python3 setup.py build
+  cd "$srcdir"/cffi-cffi-${_revision::12}
+  python setup.py build
 
-  cd "$srcdir"/cffi-py2
+  cd "$srcdir"/cffi-cffi-${_revision::12}-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/cffi
-  python3 setup.py ptr
+  cd "$srcdir"/cffi-cffi-${_revision::12}
+  python setup.py pytest
 
-  cd "$srcdir"/cffi-py2
-  python2 setup.py ptr
+  cd "$srcdir"/cffi-cffi-${_revision::12}-py2
+  python2 setup.py pytest
 }
 
 package_python-cffi() {
   depends=('python-pycparser')
 
-  cd cffi
-  python3 setup.py install --root="$pkgdir" --optimize=1
+  cd cffi-cffi-${_revision::12}
+  python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
@@ -47,7 +47,7 @@
 package_python2-cffi() {
   depends=('python2-pycparser')
 
-  cd cffi-py2
+  cd cffi-cffi-${_revision::12}-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }


More information about the arch-commits mailing list