diff options
Diffstat (limited to 'games-action/descent3-demo/descent3-demo-1.4.0a.ebuild')
-rw-r--r-- | games-action/descent3-demo/descent3-demo-1.4.0a.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/games-action/descent3-demo/descent3-demo-1.4.0a.ebuild b/games-action/descent3-demo/descent3-demo-1.4.0a.ebuild new file mode 100644 index 000000000000..cf1e1ee7ad37 --- /dev/null +++ b/games-action/descent3-demo/descent3-demo-1.4.0a.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils unpacker games + +DESCRIPTION="Indoor/outdoor 3D combat with evil robotic mining spacecraft" +HOMEPAGE="http://www.lokigames.com/products/descent3/" +SRC_URI="mirror://lokigames/loki_demos/${PN}.run" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +RESTRICT="mirror bindist strip" + +DEPEND="games-util/loki_patch" +RDEPEND="sys-libs/glibc + >=virtual/opengl-7.0-r1[abi_x86_32(-)] + >=x11-libs/libX11-1.6.2[abi_x86_32(-)] + >=x11-libs/libXext-1.3.2[abi_x86_32(-)]" + +dir="${GAMES_PREFIX_OPT}/${PN}" +QA_PREBUILT="${dir:1}/descent3_demo.x86 + ${dir:1}/netgames/*.d3m" + +S=${WORKDIR} + +src_install() { + local demo="data/demos/descent3_demo" + local exe="descent3_demo.x86" + + loki_patch patch.dat data/ || die + + insinto "${dir}" + exeinto "${dir}" + doins -r "${demo}"/* + doexe "${demo}/${exe}" + + # Required directory + keepdir "${dir}"/missions + + # Fix for 2.6 kernel crash + cd "${Ddir}" + ln -sf ppics.hog PPics.Hog + + games_make_wrapper ${PN} "./${exe}" "${dir}" + newicon "${demo}"/launch/box.png ${PN}.png + make_desktop_entry ${PN} "Descent 3 (Demo)" ${PN} + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "To play the game run:" + elog " descent3-demo" + elog + elog "If the game appears blank, then run it windowed with:" + elog " descent3-demo -w" + echo +} |