You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-board/fruit/fruit-2.1-r1.ebuild

39 lines
738 B

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
MY_P="${PN}_$(ver_rs 1- '')_linux"
DESCRIPTION="UCI-only chess engine"
HOMEPAGE="https://arctrix.com/nas/fruit/"
SRC_URI="https://arctrix.com/nas/${PN}/${MY_P}.zip"
S="${WORKDIR}/${MY_P}/src"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
BDEPEND="app-arch/unzip"
src_prepare() {
default
sed -i "s|book_small|${EPREFIX}/usr/share/${PN}/book_small|" option.cpp || die
}
src_compile() {
emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_install() {
dobin ${PN}
insinto /usr/share/${PN}
doins ../book_small.bin
dodoc ../{readme,technical_10}.txt
}