# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="Lost Labyrinth, a rogue like game" HOMEPAGE="http://laby.toybox.de" SRC_URI="mirror://sourceforge/lostlaby/${PN}_${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="media-libs/libsdl sys-libs/glibc" src_install() { dodir ${GAMES_PREFIX_OPT}/${PN}||die "Error making imstall directory" insinto ${GAMES_PREFIX_OPT}/${PN} exeinto ${GAMES_PREFIX_OPT}/${PN} doexe ${WORKDIR}/${PN}_${PV}/laby||die "Error inserting laby" doins ${WORKDIR}/${PN}_${PV}/sounds.pak ||die "Error inserting sounds.pak" doins ${WORKDIR}/${PN}_${PV}/graphics.pak ||die "Error inserting graphics.pak" doins ${WORKDIR}/${PN}_${PV}/highscores.dat||die "Error inserting highscores.dat" fowners games:games ${GAMES_PREFIX_OPT}/laby/highscores.dat||die "Error chowning highscores.dat" fperms 660 ${GAMES_PREFIX_OPT}/laby/highscores.dat||die "Error changing permissions on highscores.dat" dodoc ${WORKDIR}/${PN}_${PV}/readme.txt||die "Error inserting readme" newicon ${WORKDIR}/${PN}_${PV}/laby.xpm ${PN}.xpm||die "Error inserting icon" make_desktop_entry laby "Lost Labyrinth" ${PN}.xpm "Game;RolePlaying"||die "Error making desktop entry" echo -e "#!/bin/sh \ncd ${GAMES_PREFIX_OPT}/${PN}\n./${PN}" > ${PN} dogamesbin ${PN} || die "Error inserting wrapper script" } pkg_postinst() { einfo "To run Lost Labyrinth run laby from the command line" einfo "If you have artsd running you will need to disable it while" einfo "running Lost labyrinth. This can be done by editing the script" einfo "/usr/games/bin/laby to stop artsd before running the game and" einfo "start it again afterwards" }