diff options
author | James Le Cuirot <chewi@gentoo.org> | 2020-12-09 22:28:51 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2020-12-09 22:28:51 +0000 |
commit | 00b02ef386304f480656e2e660a01192150cfc4a (patch) | |
tree | 4a1896c2dbfe9574b4dd84ca15fdbd661c8e62c7 /games-rpg/bastion/bastion-20161016.ebuild | |
parent | dev-lang/python-exec: Add USE=native-symlinks to break stuff (diff) | |
download | gentoo-00b02ef386304f480656e2e660a01192150cfc4a.tar.gz gentoo-00b02ef386304f480656e2e660a01192150cfc4a.tar.bz2 gentoo-00b02ef386304f480656e2e660a01192150cfc4a.zip |
games-rpg/bastion: Bump to 20161016, drop old 20120620-r1
This version uses SDL2 rather than SDL1.
Package-Manager: Portage-3.0.12, Repoman-3.0.1
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-rpg/bastion/bastion-20161016.ebuild')
-rw-r--r-- | games-rpg/bastion/bastion-20161016.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
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 +} |