# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CRATES=""

RUST_MIN_VER="1.87.0"

inherit git-r3 cargo

DESCRIPTION="Play chess in any terminal. Rust TUI, Stockfish, Lichess."
HOMEPAGE="https://github.com/thomas-mauran/chess-tui"
EGIT_REPO_URI="https://github.com/thomas-mauran/chess-tui.git"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""

QA_FLAGS_IGNORED="usr/bin/${PN}"
QA_PRESTRIPPED="usr/bin/${PN}"

src_unpack() {
    git-r3_src_unpack
    cargo_live_src_unpack
}

pkg_postinst() {
		elog "Configuration for Chess TUI can be done in"
		elog " https://thomas-mauran.github.io/chess-tui/docs/Configuration/configuration-intro "
}