On Fri, 24 May 2024 22:24:20 -0500
izder456 <izder...@disroot.org> wrote:

> On Thu, 2 May 2024 12:39:10 -0400
> Thomas Frohwein <tfrohw...@fastmail.com> wrote:
> > So what was the reason for your earlier Error 2 when starting game?
> >  
> 
> Gonna go on a whim here, but I suspect it has something to do with
> failed resource loading.
> 
> Since this thread is stagnant and my README more than explains how to
> deal with this, is it OK to merge at the current status?
> 
> Thanks,
> 

Decided it makes more sense to put classicube_run in
${TRUEPREFIX}/share/classicube to prevent accidental runs. (as a
failsafe). I updated pkg/README and the do-install directive
accordingly to incorporate this change.

OK to merge?

Attached is a diff with the above changes.

-- 
-iz (they/them)

> i like to say mundane things, 
> there are too many uninteresting things 
> that go unnoticed.

izder456 (dot) neocities (dot) org
diff --git games/classicube/Makefile games/classicube/Makefile
index 3b155d7..6d7316f 100644
--- games/classicube/Makefile
+++ games/classicube/Makefile
@@ -25,12 +25,12 @@ USE_GMAKE =		Yes
 ALL_TARGET =		ClassiCube
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/ClassiCube ${PREFIX}/bin/classicube_run
+	${INSTALL_DATA_DIR} ${PREFIX}/share/classicube
+	${INSTALL_PROGRAM} ${WRKSRC}/ClassiCube ${PREFIX}/share/classicube/classicube_run
 	${INSTALL_DATA_DIR} ${PREFIX}/share/licenses/classicube
 	${INSTALL_DATA} ${WRKSRC}/license.txt \
 		${PREFIX}/share/licenses/classicube/license.txt
 	${INSTALL_DATA_DIR} ${PREFIX}/share/applications
-	${INSTALL_DATA_DIR} ${PREFIX}/share/classicube
 	${INSTALL_DATA} ${WRKSRC}/misc/CCicon.png \
 		${PREFIX}/share/classicube/CCicon.png
 	@${SUBST_DATA} ${FILESDIR}/classicube.desktop \
diff --git games/classicube/files/classicube games/classicube/files/classicube
index c6e6815..9d4ddd3 100644
--- games/classicube/files/classicube
+++ games/classicube/files/classicube
@@ -2,4 +2,4 @@
 
 mkdir -p $HOME/.local/share/classicube
 cd $HOME/.local/share/classicube
-${TRUEPREFIX}/bin/classicube_run
\ No newline at end of file
+${TRUEPREFIX}/share/classicube/classicube_run
\ No newline at end of file
diff --git games/classicube/pkg/PLIST games/classicube/pkg/PLIST
index dd0967a..93ee065 100644
--- games/classicube/pkg/PLIST
+++ games/classicube/pkg/PLIST
@@ -1,8 +1,8 @@
 bin/classicube
-@bin bin/classicube_run
 share/applications/classicube.desktop
 share/classicube/
 share/classicube/CCicon.png
+@bin share/classicube/classicube_run
 share/doc/pkg-readmes/${PKGSTEM}
 share/licenses/
 share/licenses/classicube/
diff --git games/classicube/pkg/README games/classicube/pkg/README
index 11740be..ab602c5 100644
--- games/classicube/pkg/README
+++ games/classicube/pkg/README
@@ -7,11 +7,11 @@ current working directory.
 
 This port provides two executables, one a script and one a binary:
 
-    classicube_run
+    ${TRUEPREFIX}/share/classicube/classicube_run
 	the binary of the game engine itself.
 	do not run this manually (keep reading)
 
-    classicube
+    ${TRUEPREFIX}/bin/classicube
 	a wrapper script that opens classicube_run in a sane location
 	so that the assets get saved to a user-writable location.
 	the script opens & downloads assets to/from

Reply via email to