diff options
Diffstat (limited to 'games-simulation/sky-rogue/sky-rogue-1.3.3.ebuild')
-rw-r--r-- | games-simulation/sky-rogue/sky-rogue-1.3.3.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/games-simulation/sky-rogue/sky-rogue-1.3.3.ebuild b/games-simulation/sky-rogue/sky-rogue-1.3.3.ebuild new file mode 100644 index 000000000000..49f186785ecd --- /dev/null +++ b/games-simulation/sky-rogue/sky-rogue-1.3.3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop wrapper xdg + +MY_PN="${PN//-}" +DESCRIPTION="A fwooshy rogue-lite action flight simulator" +HOMEPAGE="https://skyroguegame.com/" +SRC_URI="${PN}-linux.zip" +S="${WORKDIR}" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="bindist fetch splitdebug" + +RDEPEND=" + sys-libs/zlib + virtual/opengl +" + +BDEPEND=" + app-arch/unzip +" + +DIR="/opt/${PN}" +QA_PREBUILT="${DIR#/}/*" + +pkg_nofetch() { + einfo "Please buy and download ${SRC_URI} from:" + einfo " https://fractal-phase.itch.io/${PN}" + einfo "and move it to your distfiles directory." +} + +src_install() { + exeinto "${DIR}" + newexe ${MY_PN}.$(usex amd64 x86_64 x86) ${MY_PN} + make_wrapper ${PN} "${DIR}"/${MY_PN} + + insinto "${DIR}" + doins -r ${MY_PN}_Data/ + rm -r "${ED}/${DIR}"/${MY_PN}_Data/*/$(usex amd64 x86 x86_64) || die + + # Some Unity games have a GUI launcher but this one doesn't use it. + rm "${ED}/${DIR}"/${MY_PN}_Data/Plugins/*/ScreenSelector.so || die + + newicon -s 128 ${MY_PN}_Data/Resources/UnityPlayer.png ${PN}.png + make_desktop_entry ${PN} "Sky Rogue" +} |