Commit 54528115 authored by Leo's avatar Leo

testing/cutechess: remove

parent f6ce11f2
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=cutechess
pkgver=1.2.0
pkgrel=0
pkgdesc="GUI, CLI and library for playing chess"
options="!check" # Requires qt5-testlib
url="https://cutechess.com"
arch="all"
license="GPL-3.0-or-later"
makedepends="qt5-qtbase-dev qt5-qtsvg-dev"
subpackages="
$pkgname-doc:cutechess_doc:noarch
$pkgname-cli
$pkgname-cli-doc:cli_doc:noarch
"
source="$pkgname-$pkgver.tar.gz::https://github.com/cutechess/cutechess/archive/$pkgver.tar.gz"
build() {
qmake-qt5 \
PREFIX=/usr \
LIBDIR=/usr/lib
make
}
package() {
# GUI
install -Dm755 projects/gui/cutechess -t "$pkgdir"/usr/bin
install -Dm644 projects/gui/res/icons/cutechess_32x32.xpm -t "$pkgdir"/usr/share/pixmaps
install -Dm644 dist/linux/cutechess.desktop -t "$pkgdir"/usr/share/applications
# CLI
install -Dm755 projects/cli/cutechess-cli -t "$pkgdir"/usr/bin
install -Dm644 docs/cutechess-cli.6 -t "$pkgdir"/usr/share/man/man6
install -Dm644 docs/engines.json.5 -t "$pkgdir"/usr/share/man/man5
}
cutechess_doc() {
default_doc
# Bring cutechess-cli.6 back so it can be in cutechess-cli-doc
mkdir -p "$pkgdir"/usr/share/man
mv "$subpkgdir"/usr/share/man/man6 "$pkgdir"/usr/share/man
}
cli() {
pkgdesc="Commandline interface for cutechess"
depends=""
amove usr/bin/cutechess-cli
}
cli_doc() {
install_if="docs $pkgname-cli=$pkgver-r$pkgrel" default_doc
}
sha512sums="2a53397dec472dd471f4c09a4a5c713ffe98844a76cb551bd7bc205af061ce0793ffba2b3f652549149c8bb14112666512d7f9d1c751e351fda194cf1d55399a cutechess-1.2.0.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment