aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-09-17 13:45:47 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-09-17 19:47:30 +0000
commitda28baa43f4310ad68cbfb53f7b45b60b93b3907 (patch)
treefebcd110ade585b8e6f0debef427d0065db68cb9
parent3d834ccd2da1093c3841b7b0948edd3b75cfa0da (diff)
downloadaports-da28baa43f4310ad68cbfb53f7b45b60b93b3907.tar.gz
aports-da28baa43f4310ad68cbfb53f7b45b60b93b3907.tar.bz2
aports-da28baa43f4310ad68cbfb53f7b45b60b93b3907.tar.xz
testing/cutechess: new aport
https://cutechess.com GUI, CLI and library for playing chess
-rw-r--r--testing/cutechess/APKBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/testing/cutechess/APKBUILD b/testing/cutechess/APKBUILD
new file mode 100644
index 0000000000..7d9622f207
--- /dev/null
+++ b/testing/cutechess/APKBUILD
@@ -0,0 +1,56 @@
+# 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"