diff options
author | James Le Cuirot <chewi@gentoo.org> | 2019-05-06 16:09:20 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2019-05-06 16:09:20 +0100 |
commit | 46a45ff08e849676f4f6c5c61f5baa74a82ae02b (patch) | |
tree | e0fbfacd11945294321768b8976a3ab1edc68db5 /games-rpg/costume-quest/costume-quest-2.0.0.3.ebuild | |
parent | profiles: Mask games-rpg/costume-quest in non-glibc/multilib profiles (diff) | |
download | gentoo-46a45ff08e849676f4f6c5c61f5baa74a82ae02b.tar.gz gentoo-46a45ff08e849676f4f6c5c61f5baa74a82ae02b.tar.bz2 gentoo-46a45ff08e849676f4f6c5c61f5baa74a82ae02b.zip |
games-rpg/costume-quest: New package
This only supports the GOG version for now. This is probably the GOG
version number rather than the upstream one but I can't find an
upstream one.
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-rpg/costume-quest/costume-quest-2.0.0.3.ebuild')
-rw-r--r-- | games-rpg/costume-quest/costume-quest-2.0.0.3.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/games-rpg/costume-quest/costume-quest-2.0.0.3.ebuild b/games-rpg/costume-quest/costume-quest-2.0.0.3.ebuild new file mode 100644 index 000000000000..822f7a146872 --- /dev/null +++ b/games-rpg/costume-quest/costume-quest-2.0.0.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop unpacker xdg-utils + +DESCRIPTION="A Halloween adventure from Tim Schafer's Double Fine Productions" +HOMEPAGE="https://www.doublefine.com" +SRC_URI="gog_${PN//-/_}_${PV}.sh" +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="bindist fetch splitdebug" + +RDEPEND=" + media-libs/glu[abi_x86_32] + media-libs/libsdl2[abi_x86_32,joystick,opengl,sound,threads,video] + sys-libs/zlib[abi_x86_32] + virtual/opengl[abi_x86_32] +" + +S="${WORKDIR}/data/noarch/game" + +DIR="/opt/${PN}" +QA_PREBUILT="${DIR}/*" + +src_unpack() { + unpack_zip ${A} +} + +src_prepare() { + default + + # I think our SDL2 package has a newer database. + rm -v Data/Config/SDLGamepad.config || die +} + +src_install() { + exeinto "${DIR}" + newexe Cq.bin.x86 Cq.bin + dosym "${DIR}"/Cq.bin /usr/bin/${PN} + + insinto "${DIR}" + doins -r DFCONFIG Data/ Linux/ OGL/ Win/ + + exeinto "${DIR}/lib" + doexe lib/libfmod*.so + + newicon -s 256 CostumeQuest.png ${PN}.png + make_desktop_entry ${PN} "Costume Quest" +} + +pkg_postinst() { xdg_icon_cache_update; } +pkg_postrm() { xdg_icon_cache_update; } |