Created
July 18, 2016 16:45
-
-
Save Nebula-Mechanica/ffc31f17d7c482aa866c7b2d402c5a12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2016 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Id$ | |
EAPI=5 | |
KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sh sparc x86" | |
SLOT="0" | |
LICENSE="GPL-3+ GPL-2+" | |
DESCRIPTION='ReTux is an action platformer loosely inspired by the Mario games, | |
utilizing the art assets from the SuperTux project. The name "ReTux" is a play | |
on the words "redux" and "Tux".' | |
HOMEPAGE="http://retux.nongnu.org/" | |
SRC_URI="http://download.savannah.gnu.org/releases/retux/${PV}/retux-${PV}-src.tar.7z" | |
PASSWORD='<enter password here>' | |
RDEPEND="dev-lang/python:2.7 | |
dev-python/pygame" | |
DEPEND="app-arch/p7zip" | |
S="${WORKDIR}/${P}-src" | |
src_unpack() { | |
7z x "${DISTDIR}/${P}-src.tar.7z" -p${PASSWORD} | |
tar -xf "${WORKDIR}/${P}-src.tar" | |
} | |
src_prepare() { | |
echo '#!/bin/bash' > ${WORKDIR}/retux | |
echo 'cd /usr/share/games/retux/;python retux.py' >> ${WORKDIR}/retux | |
} | |
src_install() { | |
dobin ${WORKDIR}/retux | |
#~ rm ${WORKDIR}/retux | |
dodir /usr/share/games/retux/ | |
insinto /usr/share/games/retux/ | |
doins -r ${S}/* | |
#~ fowners root:games /usr/share/games/retux | |
#~ fowners root:games /usr/games/bin/retux | |
#~ fperms 750 /usr/games/bin/retux | |
#~ mkdir -p ${D}/usr/games/games/bin/ | |
#~ ln -s ${D}/usr/share/games/retux/retux.py ${D}/usr/games/games/bin/retux/ | |
#~ cp -R ${S}/* ${D}/usr/share/games/retux/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment