# Template file for 'pychess' pkgname=pychess version=1.0.5 revision=1 build_style=python3-module _commondeps="python3-gobject python3-cairo python3-pexpect python3-SQLAlchemy2 gst1-python3 gtksourceview" hostmakedepends="python3-setuptools gettext ${_commondeps}" 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/pychess/archive/refs/tags/${version}.tar.gz" checksum=3dda31117e5a18b0e0357aaafea6d498f64e717ad8beab82adcde00711be5638 pre_build() { PYTHONPATH=lib python3 pgn2ecodb.py PYTHONPATH=lib python3 create_theme_preview.py } do_check() { cd testing/ PYTHONPATH=../lib PYCHESS_UNITTEST=true xvfb-run -a python3 run_tests.py }