Files
gentoo/games-rpg/crosscode/crosscode-1.4.2.2-r1.ebuild
James Le Cuirot 90a8da676a games-rpg/crosscode: Fix for newer NW.js versions
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
2023-04-16 16:48:49 +01:00

51 lines
1.0 KiB
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CHECKREQS_DISK_BUILD="767M"
inherit check-reqs desktop wrapper xdg
DESCRIPTION="Retro-inspired 2D Action RPG with a sci-fi story"
HOMEPAGE="https://radicalfishgames.itch.io/crosscode"
SRC_URI="crosscode-new-linux64.zip"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="bindist fetch splitdebug"
RDEPEND="
>=dev-libs/nwjs-0.63.0
"
BDEPEND="
app-arch/unzip
"
S="${WORKDIR}"
DIR="/usr/share/${PN}"
pkg_nofetch() {
einfo "Please buy and download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to your distfiles directory."
}
src_prepare() {
default
# Greenworks is only needed under Steam.
rm -r assets/modules/ || die
}
src_install() {
insinto "${DIR}"
doins -r assets/ favicon.png natives_blob.bin package.json
newicon assets/media/face/lore/lea.png ${PN}.png
# --use-gl=egl is needed with recent NW.js versions.
make_wrapper ${PN} "nwjs '${EPREFIX}${DIR}' --use-gl=egl"
make_desktop_entry ${PN} CrossCode
}