void-packages/srcpkgs/cutechess-gui/template

29 lines
901 B
Bash

# Template file for 'cutechess-gui'
pkgname=cutechess-gui
version=1.2.0
revision=1
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="qt5-devel qt5-svg-devel"
short_desc="GUI for playing chess"
maintainer="Imran Khan <imrankhan@teknik.io>"
license="GPL-3.0-or-later, MIT"
homepage="https://github.com/cutechess/cutechess"
distfiles="https://github.com/cutechess/cutechess/archive/${version}.tar.gz"
checksum=d0e1b2c9c2eaccf0f8c4d5e5fe7e169358f5de9606bd27de3f9d1ce4ddcdb0bc
do_install() {
vbin projects/gui/cutechess
vinstall dist/linux/cutechess.desktop 644 usr/share/applications
sed -n '2,23s:^[ ]*::p' projects/gui/components/pgnhighlighter/src/pgnhighlighter.h > COPYING.gui
vlicense COPYING.gui
}
cutechess-cli_package() {
short_desc="CLI tool to automate chess engine tournaments"
pkg_install() {
vbin projects/cli/cutechess-cli
vman docs/cutechess-cli.6
}
}