# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games versionator MY_PV=$(delete_all_version_separators) MOD="Archasis" DESCRIPTION="Medieval mod for Unreal Tournament 2004" HOMEPAGE="http://www.planetunreal.com/archasis/" SRC_URI="http://www.optiflow.net/archasis/Archasis${MY_PV}ZIP.zip" LICENSE="freedist" SLOT="0" KEYWORDS="~x86" IUSE="" RESTRICT="strip" RDEPEND="games-fps/ut2004" DEPEND="app-arch/unzip" S=${WORKDIR} dir=${GAMES_PREFIX_OPT}/ut2004 src_unpack() { # unzip gives warning: # "file appears to use backslashes as path separators" # Cannot add "|| die" # "-o" is needed because it tries to write # "Archasis/Archasis ReadMe.txt" twice unzip -o "${DISTDIR}/${A}" } src_install() { rm "Installation Instructions.txt" rm System/*.sh insinto "${dir}" doins -r * || die "doins failed" games_make_wrapper ${PN} "ut2004 -mod=${MOD}" make_desktop_entry ${PN} "UT2004 - Archasis" ut2004.xpm prepgamesdirs } pkg_postinst() { games_pkg_postinst einfo 'The "Practice Battle" option on the main menu does not work.' echo }