Skip to content

Instantly share code, notes, and snippets.

@Nebula-Mechanica
Created July 18, 2016 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nebula-Mechanica/ffc31f17d7c482aa866c7b2d402c5a12 to your computer and use it in GitHub Desktop.
Save Nebula-Mechanica/ffc31f17d7c482aa866c7b2d402c5a12 to your computer and use it in GitHub Desktop.
# 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