# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="Viking hack and slay game" HOMEPAGE="http://www.humanheadstudios.com" LICENSE="as-is" SLOT="0" KEYWORDS="-* x86" IUSE="" RDEPEND="virtual/x11 =media-libs/libsdl-1.2* opengl? ( virtual/opengl )" DEPEND="${RDEPEND} !games-fps/rune-windowscd" S="${WORKDIR}" src_install() { dir=${GAMES_PREFIX_OPT}/rune Ddir=${D}/${dir} dodir ${dir} insopts -m0550 exeopts -m0550 insinto ${dir} exeinto ${dir} CDROM_NAME="Rune - Linux CD" cdrom_get_cds System/rune-bin # unpack the data files tar -C ${Ddir} -xzf "${CDROM_ROOT}"/data.tar.gz || die "Could not unpack data.tar.gz" # copy linux specific files doins -r "${CDROM_ROOT}"/System || die "Could not copy Linux specific files" # the most important thing: rune :) doexe "${CDROM_ROOT}"/bin/x86/rune || die "Could not install rune executable" # export some symlinks so ppl can run dodir ${GAMES_BINDIR} games_make_wrapper rune ${dir}/rune ${dir} || die "Could not symlink rune" # installing documentation/icon dodoc "${CDROM_ROOT}"/README || die "Could not dodoc README.linux" cp "${CDROM_ROOT}"/icon.xpm ${S}/rune.xpm cp "${CDROM_ROOT}"/icon.bmp ${S}/rune.bmp doins "${CDROM_ROOT}"/README "${S}"/rune.{xpm,bmp} || die "Could not copy readme and icon" doicon rune.xpm || die "Could not copy pixmap" make_desktop_entry rune "Rune" rune.xpm "Game;ActionGame" || eerror "Could not create Gnome/KDE Menu entries" find ${Ddir} -exec touch '{}' \; prepgamesdirs }