[arch-commits] Commit in python-cffi/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Jul 27 18:15:24 UTC 2020
Date: Monday, July 27, 2020 @ 18:15:24
Author: felixonmars
Revision: 392576
upgpkg: python-cffi 1.14.1-1
Modified:
python-cffi/trunk/PKGBUILD
----------+
PKGBUILD | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-27 12:27:42 UTC (rev 392575)
+++ PKGBUILD 2020-07-27 18:15:24 UTC (rev 392576)
@@ -3,8 +3,8 @@
pkgbase=python-cffi
pkgname=(python-cffi python2-cffi)
-pkgver=1.14.0
-pkgrel=3
+pkgver=1.14.1
+pkgrel=1
pkgdesc="Foreign Function Interface for Python calling C code"
arch=('x86_64')
url="https://cffi.readthedocs.org/"
@@ -11,27 +11,26 @@
license=('MIT')
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=('4efe1933ddee9cfaf95dbc5c3c11278e50353b2d246d1fc7707442c48129317d21f6946e670219c2b6397b63093db4c3f421ecaa33d86f6b68007a6186e1b607')
+source=("https://foss.heptapod.net/pypy/cffi/-/archive/v$pkgver/cffi-v$pkgver.tar.bz2")
+sha512sums=('eaba47b7eb12be4e7147d21769435e71f841d6950c099343cef742bbc5a8eb26dbb0bc5f036285611073f4363604f2049166e53d92358f755af8f727669aed2d')
prepare() {
- mv cffi-cffi-* cffi-$pkgver
- cp -a cffi-$pkgver{,-py2}
+ cp -a cffi-v$pkgver{,-py2}
}
build() {
- cd "$srcdir"/cffi-$pkgver
+ cd "$srcdir"/cffi-v$pkgver
python setup.py build
- cd "$srcdir"/cffi-$pkgver-py2
+ cd "$srcdir"/cffi-v$pkgver-py2
python2 setup.py build
}
check() {
- cd "$srcdir"/cffi-$pkgver
+ cd "$srcdir"/cffi-v$pkgver
python setup.py pytest
- cd "$srcdir"/cffi-$pkgver-py2
+ cd "$srcdir"/cffi-v$pkgver-py2
python2 setup.py pytest
}
@@ -38,7 +37,7 @@
package_python-cffi() {
depends=('python-pycparser')
- cd cffi-$pkgver
+ cd cffi-v$pkgver
# remove files created during check() for reproducible SOURCES.txt
rm -rf testing/cffi{0,1}/__pycache__/
@@ -50,7 +49,7 @@
package_python2-cffi() {
depends=('python2-pycparser')
- cd cffi-$pkgver-py2
+ cd cffi-v$pkgver-py2
# remove files created during check() for reproducible SOURCES.txt
rm -rf testing/cffi{0,1}/__pycache__/
More information about the arch-commits
mailing list