diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/orthorobot/orthorobot-0.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/orthorobot/orthorobot-0.ebuild')
-rw-r--r-- | games-arcade/orthorobot/orthorobot-0.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/games-arcade/orthorobot/orthorobot-0.ebuild b/games-arcade/orthorobot/orthorobot-0.ebuild new file mode 100644 index 000000000000..2697ae2a71e6 --- /dev/null +++ b/games-arcade/orthorobot/orthorobot-0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils games + +DESCRIPTION="Nice perspective based puzzle game, where you flatten the view to move across gaps" +HOMEPAGE="http://stabyourself.net/orthorobot/" +SRC_URI="http://stabyourself.net/dl.php?file=${PN}/${PN}-source.zip -> ${P}.zip" + +LICENSE="CC-BY-NC-ND-3.0" +SLOT="0" +KEYWORDS="amd64 x86" + +RDEPEND=">=games-engines/love-0.8.0" +DEPEND="${RDEPEND} + app-arch/unzip" + +S="${WORKDIR}" + +src_unpack() { + default + #it is only one .love file (but with crappy name), so we can use asterisk + mv *.love "${P}.zip" || die 'mv failed' + unpack "./${P}.zip" + rm "${P}.zip" || die 'rm failed' +} + +src_prepare() { + # fix error on quit + sed -i -e 's/love.event.push("q")/love.event.push(fadegoal)/' menu.lua || die 'sed failed' + + epatch_user +} + +src_install() { + local dir="${GAMES_DATADIR}/love/${PN}" + insinto "${dir}" + doins -r . + games_make_wrapper "${PN}" "love ${dir}" + make_desktop_entry "${PN}" + prepgamesdirs +} + +pkg_postinst() { + elog "${PN} savegames and configurations are stored in:" + elog "~/.local/share/love/${PN}/" +} |