From edce2fb38cfa17aa2396a1031712c28dd40279de Mon Sep 17 00:00:00 2001 From: icp Date: Mon, 17 Apr 2023 21:40:55 +0530 Subject: [PATCH] pychess: update to 1.0.4. --- srcpkgs/pychess/template | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/srcpkgs/pychess/template b/srcpkgs/pychess/template index 92622121157ef6..7e52b7d8bf2f5c 100644 --- a/srcpkgs/pychess/template +++ b/srcpkgs/pychess/template @@ -1,23 +1,27 @@ # Template file for 'pychess' pkgname=pychess -version=1.0.3 -revision=2 +version=1.0.4 +revision=1 build_style=python3-module -_commondeps="python3-gobject python3-pexpect python3-SQLAlchemy - gobject-introspection gtksourceview" +_commondeps="python3-gobject python3-cairo python3-pexpect python3-SQLAlchemy2 + gst1-python3 gtksourceview" hostmakedepends="python3-setuptools gettext ${_commondeps}" -depends="stockfish gnome-icon-theme python3-websockets +depends="stockfish hicolor-icon-theme python3-websockets python3-psutil gst-plugins-base1 ${_commondeps}" checkdepends="${depends} xvfb-run" short_desc="GTK chess client written in Python" maintainer="cipr3s " license="GPL-3.0-or-later" homepage="https://pychess.github.io" -distfiles="https://github.com/pychess/${pkgname}/archive/${version}.tar.gz" -checksum=86b193dd1af1f40d37820afb33b3b3b890be2737d57df5f8e024a489840b25a4 +distfiles="https://github.com/pychess/pychess/archive/refs/tags/${version}.tar.gz" +checksum=68cd4a0197d7e325f0e46fb52b88ce8ac7425c6c9adea60c8838a57af713b0a5 + +pre_build() { + PYTHONPATH=lib python3 pgn2ecodb.py + PYTHONPATH=lib python3 create_theme_preview.py +} do_check() { cd testing/ - rm remotegame.py - PYTHONPATH=../lib PYCHESS_UNITTEST=true xvfb-run -a python3 -m unittest discover -p "*.py" + PYTHONPATH=../lib PYCHESS_UNITTEST=true xvfb-run -a python3 run_tests.py }