pychess/container.yaml
Yaakov Selkowitz fa2cd14487 F40
2024-04-26 14:14:31 -04:00

34 lines
911 B
YAML

flatpak:
id: io.github.pychess.pychess
branch: stable
runtime-name: flatpak-runtime
runtime-version: f40
packages:
- pychess
# - pychess-doc
- python3-pexpect
# chess engines
- dreamchess-engine
- fruit
- fruit-books
- gnuchess
- stockfish
- toga2
# additional components
- chess_db
- scoutfish
rename-appdata-file: pychess.metainfo.xml
rename-desktop-file: pychess.desktop
rename-icon: pychess
command: pychess
finish-args: |-
--device=dri
--filesystem=home
--share=ipc
--share=network
--socket=fallback-x11
--socket=wayland
cleanup-commands: |
sed -i -e 's|sys\.prefix|"/app"|' /app/lib/python*/site-packages/pychess/System/prefix.py
python3 -c 'from pychess.System import prefix'
mv /app/share/mime/packages/{,io.github.pychess.}pychess.xml