From ac7b80498259411d0d2738e6ee7ee5ba40296140 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Sun, 24 Apr 2022 21:45:56 +0100 Subject: games-action/transistor: New package at version 1.50440.8123.23365 Signed-off-by: James Le Cuirot --- games-action/transistor/Manifest | 1 + games-action/transistor/metadata.xml | 8 +++ .../transistor-1.50440.8123.23365.ebuild | 63 ++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 games-action/transistor/Manifest create mode 100644 games-action/transistor/metadata.xml create mode 100644 games-action/transistor/transistor-1.50440.8123.23365.ebuild (limited to 'games-action/transistor') diff --git a/games-action/transistor/Manifest b/games-action/transistor/Manifest new file mode 100644 index 000000000000..a38a461b0cc2 --- /dev/null +++ b/games-action/transistor/Manifest @@ -0,0 +1 @@ +DIST transistor_1_50440_8123_23365.sh 2798809691 BLAKE2B d0aae06565b6372d9adb37441eff1edbb45a9ab2857885275b62e4e84a270898da3bb228906fb9e7817094269061e52315d870e48ff6f124808ad8429453bae3 SHA512 0e7257ea3cc489116427ff3042d1842b8cb7218d5624513adee71221a6f17d2b0cd41a0ca98ea02e742b3a1bf8b8b407d2f48a5efc29f5d11cfca934977f6b5a diff --git a/games-action/transistor/metadata.xml b/games-action/transistor/metadata.xml new file mode 100644 index 000000000000..7c730d47817a --- /dev/null +++ b/games-action/transistor/metadata.xml @@ -0,0 +1,8 @@ + + + + + games@gentoo.org + Gentoo Games Project + + diff --git a/games-action/transistor/transistor-1.50440.8123.23365.ebuild b/games-action/transistor/transistor-1.50440.8123.23365.ebuild new file mode 100644 index 000000000000..0221beddef7e --- /dev/null +++ b/games-action/transistor/transistor-1.50440.8123.23365.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHECKREQS_DISK_BUILD="3497M" +inherit desktop check-reqs unpacker wrapper xdg + +DESCRIPTION="Sci-fi themed action RPG where you fight through a stunning futuristic city" +HOMEPAGE="https://supergiantgames.com/games/transistor/" +SRC_URI="${PN}_${PV//./_}.sh" +S="${WORKDIR}/data/noarch" + +LICENSE="GOG-EULA" +SLOT="0" +# The game /should/ work on x86, but it always crashes with an error about +# libBink.so for some reason. +KEYWORDS="-* ~amd64" +RESTRICT="bindist fetch splitdebug" + +DIR="/opt/${PN}" +QA_PREBUILT="${DIR#/}/*" + +# This only seems to directly need SDL2. It also depends on Lua 5.2, but we no +# longer package that, and newer versions do not work. +RDEPEND="media-libs/libsdl2[joystick,opengl,sound,video]" +BDEPEND="app-arch/unzip" + +pkg_nofetch() { + einfo "Please buy and download ${SRC_URI} from:" + einfo " https://www.gog.com/en/game/${PN}" + einfo "and move it to your distfiles directory." +} + +src_unpack() { + unpack_zip ${A} +} + +src_prepare() { + default + rm -v game/lib*/libSDL2-2.0.so.0 || die +} + +src_install() { + local \ + arch=$(usex amd64 x86_64 x86) \ + libdir=lib$(usex amd64 64 "") + + insinto "${DIR}" + doins -r game/{*.bmp,*.cfg,*.dll*,*.xml,*config,Transistor.exe,steam_appid.txt,Content/} + + exeinto "${DIR}" + doexe game/Transistor.bin.${arch} + + exeinto "${DIR}"/${libdir} + doexe game/${libdir}/*.so* + + dodoc game/Linux.README + + newicon -s 256 support/icon.png ${PN}.png + make_wrapper ${PN} ./Transistor.bin.${arch} "${DIR}" + make_desktop_entry ${PN} Transistor +} -- cgit v1.2.3-65-gdbad