From 8ba109996aaffbbfa63721b70b5c683a06a25b55 Mon Sep 17 00:00:00 2001 From: Jason Manley Date: Sat, 19 Nov 2022 12:27:38 -0600 Subject: [PATCH] New package: KataGo-1.15.1 --- srcpkgs/KataGo-OpenCL/template | 29 +++++++++++++++++++++++++++++ srcpkgs/KataGo-eigen/template | 29 +++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 srcpkgs/KataGo-OpenCL/template create mode 100644 srcpkgs/KataGo-eigen/template diff --git a/srcpkgs/KataGo-OpenCL/template b/srcpkgs/KataGo-OpenCL/template new file mode 100644 index 00000000000000..0a8742b3b8ae1b --- /dev/null +++ b/srcpkgs/KataGo-OpenCL/template @@ -0,0 +1,29 @@ +# Template file for 'KataGo-OpenCL' +pkgname=KataGo-OpenCL +version=1.15.1 +revision=1 +build_wrksrc=cpp +build_style=cmake +configure_args="-DUSE_BACKEND=OPENCL -DNO_GIT_REVISION=1" +make_check_target="check" +makedepends="ocl-icd-devel zlib-devel libzip-devel" +short_desc="KataGo Go/Weiqi/Baduk analysis engine (OpenCL backend)" +maintainer="Jason Elswick " +license="MIT" +homepage="https://github.com/lightvector/KataGo/" +distfiles="https://github.com/lightvector/KataGo/archive/refs/tags/v${version}.tar.gz" +checksum=e4a9f4e2404c811a8a76f8f87127ecda0492e589487f97277dacfdd76c520d55 +alternatives="katago:katago:/usr/bin/katago-opencl" + +case "$XBPS_TARGET_MACHINE" in + i686*) broken="size_t assert fails" ;; +esac + +do_check() { + build/katago runtests +} + +do_install() { + vbin build/katago katago-opencl + vlicense "${wrksrc}"/LICENSE +} diff --git a/srcpkgs/KataGo-eigen/template b/srcpkgs/KataGo-eigen/template new file mode 100644 index 00000000000000..23b1f36fe622b1 --- /dev/null +++ b/srcpkgs/KataGo-eigen/template @@ -0,0 +1,29 @@ +# Template file for 'KataGo-eigen' +pkgname=KataGo-eigen +version=1.15.1 +revision=1 +build_wrksrc=cpp +build_style=cmake +configure_args="-DUSE_BACKEND=EIGEN -DNO_GIT_REVISION=1" +make_check_target="check" +makedepends="zlib-devel libzip-devel eigen" +short_desc="KataGo Go/Weiqi/Baduk analysis engine (eigen backend)" +maintainer="Jason Elswick " +license="MIT" +homepage="https://github.com/lightvector/KataGo/" +distfiles="https://github.com/lightvector/KataGo/archive/refs/tags/v${version}.tar.gz" +checksum=e4a9f4e2404c811a8a76f8f87127ecda0492e589487f97277dacfdd76c520d55 +alternatives="katago:katago:/usr/bin/katago-eigen" + +case "$XBPS_TARGET_MACHINE" in + i686*) broken="size_t assert fails" ;; +esac + +do_check() { + build/katago runtests +} + +do_install() { + vbin build/katago katago-eigen + vlicense "${wrksrc}"/LICENSE +}