gnu: Add eboard.

* gnu/packages/games.scm (eboard): New variable.
This commit is contained in:
Guillaume Le Vaillant 2020-02-09 15:31:24 +01:00
parent 6ffe72bbd2
commit 371ca8ca86
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -9666,3 +9666,47 @@ (define-public xmoto
license:bsd-3 ;src/md5sum license:bsd-3 ;src/md5sum
license:lgpl2.1+ ;src/iqsort.h license:lgpl2.1+ ;src/iqsort.h
license:expat)))) license:expat))))
(define-public eboard
(package
(name "eboard")
(version "1.1.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/fbergo/eboard.git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
(build-system gnu-build-system)
(native-inputs
`(("perl" ,perl)
("pkg-config" ,pkg-config)))
(inputs
`(("gtk+" ,gtk+-2)
("libpng" ,libpng)
("gstreamer" ,gstreamer)))
(arguments
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(make-file-writable "eboard-config")
(setenv "CC" "gcc")
(invoke "./configure"
(string-append "--prefix=" (assoc-ref outputs "out")))
#t))
(add-before 'install 'make-required-directories
(lambda* (#:key outputs #:allow-other-keys)
(mkdir-p (string-append (assoc-ref outputs "out")
"/share/eboard"))
#t)))))
(synopsis "Graphical user interface to play chess")
(description
"Eboard is a chess board interface for ICS (Internet Chess Servers)
and chess engines.")
(home-page "https://www.bergo.eng.br/eboard/")
(license license:gpl2+)))