# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="Medal of Honor for Linux" HOMEPAGE="http://icculus.org/betas/mohaa/" SRC_URI="http://icculus.org/betas/${PN}/${PN}-lnxclient-beta${PV}.tar.bz2" LICENSE="" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" RDEPEND="" src_unpack() { mkdir ${S} cd ${S} unpack ${A} } src_install() { dodoc README || die "dodoc failed" rm README || die "removing docs failed" dodir "${GAMES_DATADIR}/${PN}" || die "dodir failed" cp * "${D}${GAMES_DATADIR}/${PN}" || die "cp failed" echo "#!/bin/sh cd ${GAMES_DATADIR}/${PN} ./mohaa_lnx" > mohaa dogamesbin mohaa || die "dogamesbin failed" prepgamesdirs } pkg_postinst() { einfo "You need the data files from Medal of Honor in ${GAMES_DATADIR}/main." einfo "For example you can symlink them to the directory with the following command" einfo "" einfo "ln -s /mnt/windows/Games/MOHAA/* ${GAMES_DATADIR}" einfo "" einfo "This will also use the configfile from your windows installation." }