commit: a5d27f4efafdaf648cede56d348fd8e4a4eed725
parent: d13209e4b9e748f6402a33f1f7c477b6c8f81a8b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 9 Oct 2018 02:31:11 +0200
games-engines/nxengine-evo: Try with using the same install as in the AUR
Diffstat:
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/games-engines/nxengine-evo/Manifest b/games-engines/nxengine-evo/Manifest
@@ -1 +1,2 @@
+DIST cavestoryen.zip 1136575 BLAKE2B 9f9ee10099b26677f905074ba14dfe858ead679ecec4dc0154d5f8ad8d616c0c99750c685a33b3445fbf6d4bcb04f561866d1b9d8d6b457bd1cee45673c0db6f SHA512 9c7c2c6c8114974df14b1dce379b86da48caf299716e1de3d743e47c3ac6a8c13c4a0ada85778e69f11c2428f991dcbfcb0020212279f9c1787260102988cbc3
DIST nxengine-evo-2.6.3.tar.gz 3228984 BLAKE2B f0ee07e88f897aa5a2fb376a5724a47574a17115e2be24e574400b534dc967961b76913fe5e3819a0ec00bf4dd0a3e2c6df35431eb8307a46e51755d14730783 SHA512 22ddc1201919d5192ac906f6ae9ebcecab38384b84c7f0ad636d4913bf9473fdcebeb30a32e6392c5edb6381fdc9703b8c3344cc5ef9ddd0ab3a12cd668e7c53
diff --git a/games-engines/nxengine-evo/nxengine-evo-2.6.3.ebuild b/games-engines/nxengine-evo/nxengine-evo-2.6.3.ebuild
@@ -7,8 +7,11 @@ inherit cmake-utils
DESCRIPTION="rewrite of the jump-and-run platformer Doukutsu Monogatari(Cave Story)"
HOMEPAGE="https://github.com/nxengine/nxengine-evo http://nxengine.sourceforge.net/"
-SRC_URI="https://github.com/nxengine/nxengine-evo/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-SLOT="evo"
+SRC_URI="
+ https://github.com/nxengine/nxengine-evo/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://www.cavestory.org/downloads/cavestoryen.zip
+"
+SLOT="0"
LICENSE="GPL-3"
KEYWORDS="~amd64"
@@ -19,14 +22,18 @@ DEPENDS="
media-libs/sdl2-ttf:=
"
+src_compile() {
+ cmake-utils_src_compile
+
+ cp -r data/ "${WORKDIR}/CaveStory"
+ cd "${WORKDIR}/CaveStory"
+ ${S}/bin/extract
+}
+
src_install() {
newbin bin/extract nx-extract
dobin bin/nx
- insinto "/usr/share/${PF}"
- doins -r data
-
- einfo "Download CaveStory (english) http://www.cavestory.org/downloads/cavestoryen.zip"
- einfo "And put /usr/share/${PF}/data files into the unpacked “CaveStory/data”"
- einfo "Run nx-extract to prepare the game and then nx to play it"
+ dodir /usr/share
+ cp -r "${WORKDIR}/CaveStory/" "${ED}/usr/share/nxengine"
}