Open ChessBase databases (.cbh, .cbv) and zip/7z archives
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run

New crate chess-import converts non-PGN sources to PGN in memory and returns
a PgnDatabase, so the library, notation and analysis work unchanged:
- .cbv archives (container rewritten after uncbv), .cbh with companion files
  (layout after the public Morphy format description): games, variations,
  comments with per-database code page detection, NAGs, squares/arrows, set-up
  positions, time spent, book chapters (guiding texts) as move-less records;
- ChessBase figurines become piece letters, diagram/object markers handled,
  Western names in Cyrillic databases read correctly;
- .zip/.7z with PGN (own encoding each), .cbh and .cbv; duplicates skipped;
- .cbz/encrypted archives and 2CBH rejected with clear messages.
Library: '+ Add database', format shown, import notes; comments keep
paragraph breaks. Tests on the user's sample books (skipped when absent).

Also: AUR PKGBUILD for 0.2.0 with the bundled Stockfish.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubel 2026-10-18 13:18:27 +03:00
parent 26bf901124
commit bb7d3b3fa6
31 changed files with 3618 additions and 64 deletions

View file

@ -1,22 +1,22 @@
pkgbase = chesspenguin-bin
pkgdesc = Chess database: view, enter and analyse PGN games with UCI engines
pkgver = 0.1.0
pkgdesc = Chess database: view, enter and analyse PGN games; Stockfish included
pkgver = 0.2.0
pkgrel = 1
url = https://github.com/vrubelroman/chessPenguin
arch = x86_64
license = GPL-3.0-or-later
license = GPL-3.0-only
depends = glibc
depends = gcc-libs
depends = alsa-lib
depends = libxkbcommon
depends = dbus
depends = hicolor-icon-theme
optdepends = stockfish: chess engine for analysis
optdepends = vulkan-icd-loader: GPU rendering via Vulkan
provides = chesspenguin
conflicts = chesspenguin
options = !debug
source = https://github.com/vrubelroman/chessPenguin/releases/download/v0.1.0/ChessPenguin-0.1.0-linux-x86_64.tar.gz
sha256sums = 4d702fbe42cafad61166fc8eab9e76712b8c315bd3c6eca338b013b69cf71a29
source = https://github.com/vrubelroman/chessPenguin/releases/download/v0.2.0/ChessPenguin-0.2.0-linux-x86_64.tar.gz
sha256sums = ce3ded091758152be7180f38179df47e33178afa651d622e47dc03e33b5d43c3
pkgname = chesspenguin-bin

View file

@ -1,24 +1,27 @@
# Maintainer: vrubelroman <vrubelroman@gmail.com>
pkgname=chesspenguin-bin
_appid=io.github.vrubelroman.chessPenguin
pkgver=0.1.0
pkgver=0.2.0
pkgrel=1
pkgdesc="Chess database: view, enter and analyse PGN games with UCI engines"
pkgdesc="Chess database: view, enter and analyse PGN games; Stockfish included"
arch=('x86_64')
url="https://github.com/vrubelroman/chessPenguin"
license=('GPL-3.0-or-later')
license=('GPL-3.0-or-later' 'GPL-3.0-only')
depends=('glibc' 'gcc-libs' 'alsa-lib' 'libxkbcommon' 'dbus' 'hicolor-icon-theme')
optdepends=('stockfish: chess engine for analysis'
'vulkan-icd-loader: GPU rendering via Vulkan')
optdepends=('vulkan-icd-loader: GPU rendering via Vulkan')
provides=('chesspenguin')
conflicts=('chesspenguin')
options=('!debug')
source=("${url}/releases/download/v${pkgver}/ChessPenguin-${pkgver}-linux-x86_64.tar.gz")
sha256sums=('4d702fbe42cafad61166fc8eab9e76712b8c315bd3c6eca338b013b69cf71a29')
sha256sums=('ce3ded091758152be7180f38179df47e33178afa651d622e47dc03e33b5d43c3')
package() {
cd "ChessPenguin-${pkgver}-linux-x86_64"
install -Dm755 chesspenguin "${pkgdir}/usr/bin/chesspenguin"
# Bundled Stockfish (GPL-3.0); the application looks for it in ../lib/chesspenguin.
install -Dm755 stockfish/stockfish "${pkgdir}/usr/lib/chesspenguin/stockfish"
install -Dm644 stockfish/Copying.txt "${pkgdir}/usr/share/licenses/${pkgname}/stockfish-Copying.txt"
install -Dm644 stockfish/AUTHORS "${pkgdir}/usr/share/doc/${pkgname}/stockfish-AUTHORS"
install -Dm644 "${_appid}.desktop" "${pkgdir}/usr/share/applications/${_appid}.desktop"
for size in 16 24 32 48 64 128 256 512; do
install -Dm644 "icons/hicolor/${size}x${size}/apps/${_appid}.png" \