# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-strategy/landeseternelles/landeseternelles-1.5,v 1 2007/08/15 15:51:03 bouleetbil@frogdev.info Exp $ inherit eutils games DESCRIPTION="Aventure game" HOMEPAGE="http://www.landes-eternelles.com/" SRC_URI="http://www.landes-eternelles.com/download.php?op=mydown&did=3" LICENSE="QTPL" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" NAMEGAME="LandesEternellesLinux" S=${WORKDIR}/${NAMEGAME} DEPEND="media-libs/libsdl media-libs/sdl-image media-libs/sdl-mixer media-libs/sdl-ttf media-libs/sdl-net media-libs/sdl-gfx media-libs/openal media-libs/cal3d media-libs/freealut" src_unpack(){ mv ${DISTDIR}/${A} ${DISTDIR}/${NAMEGAME}".tgz" unpack ${NAMEGAME}".tgz" echo "cd /usr/share/games/LandesEternellesLinux/ && ./el.x86.linux.bin" > ${WORKDIR}/${NAMEGAME}.sh } src_install() { einfo "Installing ${NAMEGAME}..." chmod 775 ${WORKDIR}/${NAMEGAME}.sh chmod +x ${WORKDIR}/${NAMEGAME}.sh dobin ${WORKDIR}/${NAMEGAME}.sh cd ${S} insinto /usr/share/games/${NAMEGAME} doins -r * } pkg_postinst() { games_pkg_postinst chmod 775 /usr/share/games/${NAMEGAME}/el.x86.linux.bin chmod +x /usr/share/games/${NAMEGAME}/el.x86.linux.bin && einfo "change permission el.x86.linux.bin" einfo "for launch ${NAMEGAME}" einfo "$ ${NAMEGAME}.sh" }