summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-04-24 21:45:56 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-04-24 21:46:35 +0100
commitac7b80498259411d0d2738e6ee7ee5ba40296140 (patch)
tree7514ab2ce1bd68df4c41b6cb741e6a183f89e657 /games-action
parentgames-board/tali: Version bump to 40.7 (diff)
downloadgentoo-ac7b80498259411d0d2738e6ee7ee5ba40296140.tar.gz
gentoo-ac7b80498259411d0d2738e6ee7ee5ba40296140.tar.bz2
gentoo-ac7b80498259411d0d2738e6ee7ee5ba40296140.zip
games-action/transistor: New package at version 1.50440.8123.23365
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-action')
-rw-r--r--games-action/transistor/Manifest1
-rw-r--r--games-action/transistor/metadata.xml8
-rw-r--r--games-action/transistor/transistor-1.50440.8123.23365.ebuild63
3 files changed, 72 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
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
+}