diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-03-25 19:22:13 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-03-25 19:22:13 +0100 |
commit | 6bd95d1f6320b8666a31ec949183aaa3088aa16f (patch) | |
tree | ff9f0cde8bfba5191f96c690c269c814c134a51e /games-action/trine-enchanted-edition | |
parent | b279bbe94522565b8feb19b8e5f377d3ea76f157 (diff) |
gentoo resync : 25.03.2018
Diffstat (limited to 'games-action/trine-enchanted-edition')
3 files changed, 99 insertions, 0 deletions
diff --git a/games-action/trine-enchanted-edition/Manifest b/games-action/trine-enchanted-edition/Manifest new file mode 100644 index 000000000000..7bed2544ddbc --- /dev/null +++ b/games-action/trine-enchanted-edition/Manifest @@ -0,0 +1,3 @@ +DIST trine_enchanted_edition_v2_12_build_508_humble_linux_full.zip 1226749814 BLAKE2B 9803f78279bcf83a2a54f25e2498664b73ba1c0ae5c540bb4479345ae05495cc11527937876fb7c9dbb34d05dbbdb4575cc6c1899923c782ff67ea23bd2cfac9 SHA512 e883763efe89f09a84c2896bfd0a9a13319dd14bb840e67f1812a0bab45bcab7a144f4c9399194e5aabad0435e350c6a903a542c9101a37c602855ebd0884d9d +EBUILD trine-enchanted-edition-2.12.508.ebuild 2281 BLAKE2B 414c0a17d01db6edc9fbb41e80a9e604e73aedec3df46f82f4833034d61ff820a9c49c6ef30fcb88df21b3cdf8f9a7f5828a00a12e271aa659ec8e39d45577a8 SHA512 feb074255ad518616b4dd116e05b3e2cbddbc5cc5e49962cf4011e7bb8226b304557b1bac993316c696b073f02119cea7ed5078eb8aa38d3ce858a009d46317d +MISC metadata.xml 321 BLAKE2B 5aca052a154cd0d9a43b96774253a2999ad36aa01c956961ad0021fa7cc6cbc8b89b7f93c6318308f6310a877ac9cb2b70bf622f25b882cf0c13261a7fae9b9c SHA512 ab5d27c4f1f5760f902abe8829db8732a19206739001dd349ac170bc64e5edb9b10ec4d16ec3d8f52569a05bc90ac08af6724f11206fce2b3506d99555712747 diff --git a/games-action/trine-enchanted-edition/metadata.xml b/games-action/trine-enchanted-edition/metadata.xml new file mode 100644 index 000000000000..b26a6baa4124 --- /dev/null +++ b/games-action/trine-enchanted-edition/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <use> + <flag name="launcher">Install GTK+ launcher</flag> + </use> +</pkgmetadata> diff --git a/games-action/trine-enchanted-edition/trine-enchanted-edition-2.12.508.ebuild b/games-action/trine-enchanted-edition/trine-enchanted-edition-2.12.508.ebuild new file mode 100644 index 000000000000..87871dfbf505 --- /dev/null +++ b/games-action/trine-enchanted-edition/trine-enchanted-edition-2.12.508.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit desktop eutils gnome2-utils + +MY_P="${PV//./_}" +MY_P="${PN//-/_}_v${MY_P%_*}_build_${MY_P##*_}" +MY_PN="Trine Enchanted Edition" + +DESCRIPTION="The original sidescrolling action platformer under the Trine 2 engine" +HOMEPAGE="https://www.frozenbyte.com/games/trine-enchanted-edition" +SRC_URI="${MY_P}_humble_linux_full.zip" +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="+launcher" +RESTRICT="bindist fetch splitdebug" + +QA_PREBUILT="opt/${PN}/${PN}*" + +DEPEND="app-arch/unzip" + +# SDL 1.3 is bundled but the game appears to be statically linked +# against SDL 2.0.3. This is unfortunate as there are bugs. For example, +# it doesn't respect the DISPLAY variable under Zaphod mode. + +RDEPEND=" + media-gfx/nvidia-cg-toolkit[abi_x86_32] + media-libs/alsa-lib[abi_x86_32] + media-libs/freetype:2[abi_x86_32] + media-libs/libogg[abi_x86_32] + >=media-libs/libvorbis-1.3[abi_x86_32] + >=media-libs/openal-1.15[abi_x86_32] + sys-libs/zlib[abi_x86_32] + virtual/glu[abi_x86_32] + virtual/opengl[abi_x86_32] + launcher? ( + dev-libs/glib:2[abi_x86_32] + media-libs/libpng:1.2[abi_x86_32] + x11-libs/gdk-pixbuf:2[abi_x86_32,X] + x11-libs/gtk+:2[abi_x86_32] + x11-libs/libX11[abi_x86_32] + x11-libs/pango[abi_x86_32,X] + )" + +S="${WORKDIR}/linux/_enchanted_edition_" + +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_install() { + local dir=/opt/${PN} + + insinto "${dir}" + doins -r *.fbq data + + exeinto "${dir}" + newexe bin/trine1_linux_32bit ${PN} + + make_wrapper ${PN} ./${PN} "${dir}" + make_desktop_entry ${PN} "${MY_PN}" + + if use launcher ; then + exeinto "${dir}" + newexe bin/trine1_linux_launcher_32bit ${PN}-launcher + + make_wrapper ${PN}-launcher ./${PN}-launcher "${dir}" + make_desktop_entry ${PN}-launcher "${MY_PN} (launcher)" + + # Launcher binary has hardcoded the game path. + dosym ../${PN} "${dir}"/bin/trine1_bin_starter.sh + fi + + newicon -s 64 trine1.png ${PN}.png + dodoc readme_changelog.txt +} + +pkg_preinst() { gnome2_icon_savelist; } +pkg_postinst() { gnome2_icon_cache_update; } +pkg_postrm() { gnome2_icon_cache_update; } |