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

Felix Yan felixonmars at archlinux.org
Mon Nov 2 06:11:01 UTC 2020


    Date: Monday, November 2, 2020 @ 06:11:00
  Author: felixonmars
Revision: 739120

upgpkg: python-cairocffi 1.2.0-1

Modified:
  python-cairocffi/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-02 05:22:41 UTC (rev 739119)
+++ PKGBUILD	2020-11-02 06:11:00 UTC (rev 739120)
@@ -3,37 +3,34 @@
 # Contributor: Florijan Hamzic <florijanh at gmail.com>
 
 pkgname=python-cairocffi
-pkgver=1.1.0
-pkgrel=4
+pkgver=1.2.0
+pkgrel=1
 pkgdesc="cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of Python bindings and object-oriented API for cairo."
 arch=('any')
 url="https://cairocffi.readthedocs.io/"
 license=('BSD')
 depends=('python-cffi' 'cairo' 'python-xcffib')
-makedepends=('python-cffi' 'python-setuptools' 'cairo'
-             'python-xcffib' 'gdk-pixbuf2')
+makedepends=('python-setuptools' 'gdk-pixbuf2')
 checkdepends=('python-pytest-runner' 'python-pytest-cov' 'python-pytest-flake8'
-              'python-pytest-isort')
+              'python-pytest-isort' 'python-numpy')
 optdepends=('gdk-pixbuf2: for cairocffi.pixbuf')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/Kozea/cairocffi/archive/v${pkgver}.tar.gz")
-sha512sums=('d32e8d1a41d287818c84594d584b9951d37102a336b44cd1d0486f808cae8f8d771b6d4864889f9802f3f010f91c4e7612afbb0292b1cabcdb5a2238e074df2e')
+sha512sums=('06741670d0e10be6d762fa4d85c8dfb4d26827f5e2c5863ca6301ea3feeacb52bb0f2c86fcf095894f99523a22624142e05ce6035ad07ec07555b18a38f7a79f')
 
 
 build() {
-  cd "$srcdir/cairocffi-$pkgver"
+  cd cairocffi-$pkgver
   python setup.py build
 }
 
 check() {
-  export LC_CTYPE=en_US.utf8
-
-  cd "$srcdir/cairocffi-$pkgver"
-  python setup.py pytest || echo "Tests failed"
+  cd cairocffi-$pkgver
+  python setup.py pytest
 }
 
 package() {
-  cd "$srcdir/cairocffi-$pkgver"
+  cd cairocffi-$pkgver
   python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
 
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



More information about the arch-commits mailing list