# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="Barbarian is a remake of the classic game" 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="" RDEPEND=">=media-libs/libsdl-1.2" S="${WORKDIR}" GAME_DEST="${GAMES_PREFIX_OPT}/${PN}" src_install() { dodir "${GAME_DEST}" cp -r gfx sounds "${D}${GAME_DEST}/" exeinto "${GAME_DEST}" doexe Barbarian dohtml Barbarian.html 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 }