summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFinn Rayment <finn@rayment.fr>2023-08-12 23:08:18 +1000
committerViorel Munteanu <ceamac@gentoo.org>2023-09-11 18:01:42 +0300
commit29979821bd3254f9f73bb39580a88015cfc24070 (patch)
treef3cf651e10b06a6fab8add0145134bc9dcb62c96 /games-roguelike
parentapp-emulation/vkd3d-proton: add 2.10 (starfield edition) (diff)
downloadgentoo-29979821bd3254f9f73bb39580a88015cfc24070.tar.gz
gentoo-29979821bd3254f9f73bb39580a88015cfc24070.tar.bz2
gentoo-29979821bd3254f9f73bb39580a88015cfc24070.zip
games-roguelike/FTL-gog: add 1.6.12.2.35269
Signed-off-by: Finn Rayment <finn@rayment.fr> Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'games-roguelike')
-rw-r--r--games-roguelike/FTL-gog/FTL-gog-1.6.12.2.35269.ebuild64
-rw-r--r--games-roguelike/FTL-gog/Manifest1
2 files changed, 65 insertions, 0 deletions
diff --git a/games-roguelike/FTL-gog/FTL-gog-1.6.12.2.35269.ebuild b/games-roguelike/FTL-gog/FTL-gog-1.6.12.2.35269.ebuild
new file mode 100644
index 000000000000..470bc4009a31
--- /dev/null
+++ b/games-roguelike/FTL-gog/FTL-gog-1.6.12.2.35269.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop unpacker
+
+DESCRIPTION="Top-down roguelike space ship simulator"
+HOMEPAGE="https://www.gog.com/game/faster_than_light"
+SRC_URI="ftl_advanced_edition_${PV//./_}.sh"
+RESTRICT="bindist fetch mirror strip test"
+
+LICENSE="GOG-EULA"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+BDEPEND="app-arch/unzip"
+RDEPEND="media-libs/freetype
+ media-libs/libsdl[X,sound,opengl,video]
+ media-libs/libpng
+ sys-libs/zlib
+ virtual/opengl"
+
+S="${WORKDIR}/data/noarch"
+
+pkg_nofetch() {
+ einfo "Please buy and download ${SRC_URI} from"
+ einfo "https://www.gog.com/game/faster_than_light"
+ einfo "and place it in your DISTDIR directory."
+}
+
+src_unpack() {
+ unpack_zip "${DISTDIR}/${A}"
+}
+
+src_prepare() {
+ default
+ rm -r support/{xdg*,*.{sh,txt}} || die
+ if ! use x86; then
+ rm game/data/FTL.x86 || die
+ fi
+ if ! use amd64; then
+ rm game/data/FTL.amd64 || die
+ fi
+
+ sed -i start.sh -e '/chmod/d' || die
+}
+
+src_install() {
+ insinto /opt/FTL
+ doins -r .
+ fperms +x /opt/FTL/{start.sh,game/FTL,game/data/FTL}
+
+ if use x86; then
+ fperms +x /opt/FTL/game/data/FTL.x86
+ fi
+ if use amd64; then
+ fperms +x /opt/FTL/game/data/FTL.amd64
+ fi
+
+ make_desktop_entry "/opt/FTL/start.sh" "FTL: Advanced Edition" FTL
+ newicon support/icon.png FTL.png
+}
diff --git a/games-roguelike/FTL-gog/Manifest b/games-roguelike/FTL-gog/Manifest
index 6e6e90bdc56a..6f0c4cec287a 100644
--- a/games-roguelike/FTL-gog/Manifest
+++ b/games-roguelike/FTL-gog/Manifest
@@ -1 +1,2 @@
DIST ftl_advanced_edition_1_6_9_25330.sh 200833898 BLAKE2B 9eb048e302158f1cc040492a9fb5bd84038dd9202b8cfdd08ec50a3e55326da18048f4eab0c8b79ecf47229d54b59fca46cebaa107d253eadc0cc5659da4792b SHA512 7b1d87b5def455989290366ef80652361dee9d0fd2838806d2386d8a1df44e0ab125c5538aa07b20382be4aa3054b14b4a489b39b6aa252f3cc00ead8504186c
+DIST ftl_advanced_edition_1_6_12_2_35269.sh 246732960 BLAKE2B a26cafabc43b7e80d31d105fb909d867319c4bd900f7558277f17399bb4998b27c3b9f1d18f670ae1092ae872840b0181c3bea81790edd097240d1ee78abc924 SHA512 d3e061605069e874ed3e55440e5aae24ab6690977ce477728a46f7e7f487595a09ab4a56ec22c784e454286b0bfe2a3a791d78645fd7dc0feab9649cf282afd2