mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-11-04 14:51:06 -05:00
games-simulation/kittenspaceagency-bin: Move script to separate file
This helps avoid excessive file lengths in the ebuild. Signed-off-by: Niklaus 'vimja' Hofer <gentoo-bugzilla@vimja.email>
This commit is contained in:
2 files changed
+10
-13
No files matched your search
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd /opt/kittenspaceagency
|
||||
# KSA defaults to x11 protocol as of r5622, only falling back to wayland if x11 (eg xwayland) is unavailable
|
||||
# "Changed KSA on Linux to start on X11 by default, using XWayland on a Wayland desktop, so detached windows work without any launch option."
|
||||
# "If X11 can't start, such as on a Wayland desktop without XWayland, it falls back to the platform GLFW would have chosen."
|
||||
# "Added the -wayland launch option to run on native Wayland instead. Detached windows are still turned off there, because Wayland can't position windows. -force-x11 is still accepted but no longer needed."
|
||||
# "Changed the KSA launch profile for devs to no longer pass -force-x11, and added a "KSA (Wayland)" profile that passes -wayland."
|
||||
exec ./KSA "$@"
|
||||
+1
-13
@@ -42,19 +42,7 @@ src_install() {
|
||||
doexe "KSA"
|
||||
doexe "Brutal.Monitor.Subprocess"
|
||||
|
||||
cat > kittenspaceagency <<- 'ENDWRAPPER' || die
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd /opt/kittenspaceagency
|
||||
# KSA defaults to x11 protocol as of r5622, only falling back to wayland if x11 (eg xwayland) is unavailable
|
||||
# "Changed KSA on Linux to start on X11 by default, using XWayland on a Wayland desktop, so detached windows work without any launch option."
|
||||
# "If X11 can't start, such as on a Wayland desktop without XWayland, it falls back to the platform GLFW would have chosen."
|
||||
# "Added the -wayland launch option to run on native Wayland instead. Detached windows are still turned off there, because Wayland can't position windows. -force-x11 is still accepted but no longer needed."
|
||||
# "Changed the KSA launch profile for devs to no longer pass -force-x11, and added a "KSA (Wayland)" profile that passes -wayland."
|
||||
exec ./KSA "$@"
|
||||
ENDWRAPPER
|
||||
|
||||
dobin kittenspaceagency
|
||||
dobin "${FILESDIR}"/kittenspaceagency
|
||||
|
||||
make_desktop_entry --eapi9 "/usr/bin/kittenspaceagency" \
|
||||
-d "kittenspaceagency" \
|
||||
|
||||
Reference in new issue
Block a user