From 9a25be77530ea4c3e6db53950f763c56c8246425 Mon Sep 17 00:00:00 2001 From: Imran Khan Date: Sun, 26 May 2019 18:13:59 +0000 Subject: [PATCH] New package: cutechess-gui-1.0.0 --- srcpkgs/cutechess-cli | 1 + srcpkgs/cutechess-gui/template | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 120000 srcpkgs/cutechess-cli create mode 100644 srcpkgs/cutechess-gui/template diff --git a/srcpkgs/cutechess-cli b/srcpkgs/cutechess-cli new file mode 120000 index 0000000000..dc1bda2e12 --- /dev/null +++ b/srcpkgs/cutechess-cli @@ -0,0 +1 @@ +cutechess-gui \ No newline at end of file diff --git a/srcpkgs/cutechess-gui/template b/srcpkgs/cutechess-gui/template new file mode 100644 index 0000000000..3aca9dc84c --- /dev/null +++ b/srcpkgs/cutechess-gui/template @@ -0,0 +1,32 @@ +# Template file for 'cutechess-gui' +pkgname=cutechess-gui +version=1.0.0 +revision=1 +build_style=qmake +hostmakedepends="qt5-qmake" +makedepends="qt5-devel qt5-svg-devel" +short_desc="GUI for playing chess" +maintainer="Imran Khan " +license="GPL-3.0-or-later, MIT" +homepage="https://github.com/cutechess/cutechess" +distfiles="https://github.com/cutechess/cutechess/archive/gui-${version}.tar.gz" +checksum=b85967c225e70eed88c1b64d42542bdb21c8f3f52fd17765200073e390aaba04 + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-host-tools qt5-devel qt5-svg-devel" +fi + +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 + } +}