From 6abbf81ef2f298e3221ff5e67a1f3c5f23958212 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 14 Dec 2020 13:26:14 +0000 Subject: gentoo resync : 14.12.2020 --- games-rpg/bastion/bastion-20161016.ebuild | 67 +++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 games-rpg/bastion/bastion-20161016.ebuild (limited to 'games-rpg/bastion/bastion-20161016.ebuild') diff --git a/games-rpg/bastion/bastion-20161016.ebuild b/games-rpg/bastion/bastion-20161016.ebuild new file mode 100644 index 000000000000..d0388d065a8f --- /dev/null +++ b/games-rpg/bastion/bastion-20161016.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop check-reqs unpacker wrapper xdg + +TIMESTAMP=${PV:4:2}${PV:6:2}${PV:0:4} +DESCRIPTION="An original action role-playing game set in a lush imaginative world" +HOMEPAGE="https://supergiantgames.com/games/bastion/" +SRC_URI="bastion-${TIMESTAMP}-bin" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="bindist fetch splitdebug" + +DIR="/opt/${PN}" +QA_PREBUILT="${DIR#/}/*" + +# Being a Mono-based game, it is tricky to determine the precise +# dependencies. These were found by trial and error. +RDEPEND=" + media-libs/libsdl2[joystick,opengl,sound,video] + media-libs/libvorbis +" +BDEPEND=" + app-arch/unzip +" + +CHECKREQS_DISK_BUILD="2400M" +S="${WORKDIR}/data" + +pkg_nofetch() { + einfo "Please buy and download ${SRC_URI} from:" + einfo " https://www.humblebundle.com/store/${PN}" + einfo "and move it to your distfiles directory." +} + +src_unpack() { + unpack_zip ${A} +} + +src_prepare() { + default + rm -v 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 *.dll* Bastion.exe steam_appid.txt Content/ mono/ + + exeinto "${DIR}" + doexe Bastion.bin.${arch} + + exeinto "${DIR}"/${libdir} + doexe ${libdir}/*.so* + + dodoc Linux.README + + make_wrapper ${PN} "env -u TERM \"${EPREFIX}${DIR}/Bastion.bin.${arch}\"" + make_desktop_entry ${PN} Bastion applications-games +} -- cgit v1.2.3