diff options
Diffstat (limited to 'games-rpg/dontstarve/dontstarve-0.ebuild')
| -rw-r--r-- | games-rpg/dontstarve/dontstarve-0.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/games-rpg/dontstarve/dontstarve-0.ebuild b/games-rpg/dontstarve/dontstarve-0.ebuild new file mode 100644 index 00000000..ca84ada7 --- /dev/null +++ b/games-rpg/dontstarve/dontstarve-0.ebuild @@ -0,0 +1,51 @@ +# By eroen, 2013 +# Distributed under the terms of the ISC licence +# $Header: $ + +EAPI=5 + +inherit eutils games + +DESCRIPTION="An uncompromising wilderness survival game full of science and magic." +HOMEPAGE="http://www.dontstarvegame.com/" +SRC_URI="dontstarve_x641369852738.tar.gz" + +LICENSE="dontstarve-EULA BSD MIT" +RESTRICT="fetch strip" +SLOT="0" +KEYWORDS="-* ~amd64" +IUSE="" + +HDEPEND="" +LIBDEPEND="media-libs/fmod + media-libs/libsdl:2 + virtual/opengl" +DEPEND="" +RDEPEND="${LIBDEPEND}" +[[ ${EAPI} == *-hdepend ]] || DEPEND+=" ${HDEPEND}" + +S="${WORKDIR}"/dontstarve + +src_install() { + exeinto "${GAMES_BINDIR}" + newexe "${FILESDIR}"/launcher.sh ${PN} + sed -e "s:@VAR0@:${GAMES_DATADIR}/${PN}/data:" \ + -e "s:@VAR1@:$(games_get_libdir)/${PN}/${PN}:" \ + -e "s:@VAR2@:$(games_get_libdir)/${PN}:" \ + -i "${D}${GAMES_BINDIR}"/${PN} || die + + insinto "$(games_get_libdir)"/${PN} + doins bin/dontstarve + doins bin/lib64/libSDL2{.so,-2.0.so.0{,.0.0}} \ + bin/lib64/libfmodevent64{,-4.44.07}.so \ + bin/lib64/libfmodex64{,-4.44.07}.so + + insinto "${GAMES_DATADIR}"/${PN} + #doins -r data/* # takes a year + mkdir -p "${D}${GAMES_DATADIR}"/${PN} + cp -r data "${D}${GAMES_DATADIR}"/${PN}/ || die + cp -r mods "${D}${GAMES_DATADIR}"/${PN}/ || die + + prepgamesdirs + chmod og+x "${D}$(games_get_libdir)"/${PN}/${PN} +} |
