summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a7f25b66935e469b391ca47d16479d6444c02e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Valerii Huz <ghotrix at gmail dot com>
pkgname=lc0-client-git
_pkgname=lc0-client
pkgver=229
pkgrel=1
pkgdesc="Client for games generation to train Leela Chess Zero."
arch=('i686' 'x86_64')
url="https://lczero.org/"
license=('GPLv3')
optdepends=('lc0-cudnn-git')
makedepends=('git' 'go')
source=("${_pkgname}::git+https://github.com/LeelaChessZero/lczero-client.git#branch=master")
md5sums=('SKIP')

prepare() {
    cd "${srcdir}/${_pkgname}"
    go get -u github.com/gofrs/flock
    go get -u github.com/Tilps/chess
    go get -u github.com/nightlyone/lockfile
}

pkgver() {
    cd "${srcdir}/${_pkgname}"
    git rev-list --count HEAD
}

build() {
    cd "${srcdir}/${_pkgname}"
    go build lc0_main.go
}

package() {
    cd "${srcdir}/${_pkgname}"
    install -Dm755 lc0_main $pkgdir/usr/bin/lc0_client
}