diff options
author | Antoni Boucher | 2023-07-09 10:13:07 -0400 |
---|---|---|
committer | Antoni Boucher | 2023-07-09 10:13:07 -0400 |
commit | 348ee936b5070182179c980e24007b2667a03caf (patch) | |
tree | e54e6ad72cfae2c3ad2ada20e4df2df9bb272e7f | |
download | aur-348ee936b5070182179c980e24007b2667a03caf.tar.gz |
Add initial version of fairy-stockfish with default make config
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8d4b9ba1458e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = fairy-stockfish-default-git + pkgdesc = A chess engine derived from Stockfish designed for the support of fairy chess variants and easy extensibility with more games (compiled without largeboards=yes all=yes and with armv8 support). + pkgver = r6520.8549ed1d + pkgrel = 1 + url = https://github.com/ianfab/Fairy-Stockfish + arch = i686 + arch = x86_64 + arch = aarch64 + license = GPL3 + makedepends = git + optdepends = polyglot: For xboard support + conflicts = fairy-stockfish-default + source = fairy-stockfish-default-git::git+https://github.com/ianfab/Fairy-Stockfish + md5sums = SKIP + +pkgname = fairy-stockfish-default-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a8ac5ddf416c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: bouanto <bouanto at zoho dot com> +pkgname=fairy-stockfish-default-git +pkgver=r6520.8549ed1d +pkgrel=1 +pkgdesc="A chess engine derived from Stockfish designed for the support of fairy chess variants and easy extensibility with more games (compiled without largeboards=yes all=yes and with armv8 support)." +arch=('i686' 'x86_64' 'aarch64') +url="https://github.com/ianfab/Fairy-Stockfish" +license=('GPL3') +makedepends=('git') +optdepends=('polyglot: For xboard support') +conflicts=("${pkgname%-*}") +source=("$pkgname::git+$url") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/$pkgname/src" + sed -i 's/^EXE = stockfish$/EXE = fairy-stockfish/' Makefile +} + +build() { + [[ $CARCH = 'aarch64' ]] && build_arch="armv8" || build_arch="x86-64" + cd "$srcdir/$pkgname/src" + make build ARCH=$build_arch +} + +package() { + cd "$srcdir/$pkgname/src" + make PREFIX="$pkgdir/usr" install + install -D -m644 ../Copying.txt $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE +} |