# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="Save Princess Mariana through one-on-one battles with demonic barbarians." HOMEPAGE="http://www16.brinkster.com/tomber/projects.asp?projectnr=2" SRC_URI="http://www.pcpages.com/tomberrr/downloads/${PN}_linux.zip" LICENSE="" SLOT="0" KEYWORDS="-* x86" IUSE="" DEPEND=">=media-libs/libsdl-1.2" S="${WORKDIR}" src_install() { local game_dest="${GAMES_PREFIX_OPT}/${PN}" dodir "${game_dest}" cp -r gfx sounds "${D}${game_dest}/" || die "cp gfx sounds failed" exeinto "${game_dest}" doexe Barbarian || die "doexe failed" dohtml Barbarian.html || die "dohtml failed" games_make_wrapper barbarian ./Barbarian "${game_dest}" # High-score file dodir "${GAMES_STATEDIR}" touch "${D}${GAMES_STATEDIR}/heroes.hoh" fperms 660 "${GAMES_STATEDIR}/heroes.hoh" dosym "${GAMES_STATEDIR}/heroes.hoh" "${game_dest}/heroes.hoh" prepgamesdirs }