# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="NEXUIZ FPS" HOMEPAGE="http://www.nexuiz.com" MY_P=${P/-/_}-english SRC_URI="${MY_P}.run" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="dedicated" DEPEND="app-arch/unzip virtual/opengl media-libs/jpeg media-libs/libogg media-libs/libsdl media-libs/libvorbis sys-libs/zlib" S=${WORKDIR}/${MY_P} src_unpack() { cd ${WORKDIR} # unpack einfo "Unpacking archive...." sh ${DISTDIR}/${A} --noexec --keep cd ${S} # extract data file einfo "Unpacking data files..." tar -xjf nexuiz.tar.bz2 } src_install() { cd ${S} dodir /opt/nexuiz exeinto /opt/nexuiz exeopts -m0755 -o ${GAMES_USER} -g ${GAMES_GROUP} if use amd64 ; then doexe bin/Linux/amd64/nexuiz-sdl use dedicated && doexe bin/Linux/amd64/nexuiz-dedicated else doexe bin/Linux/x86/nexuiz-sdl use dedicated && doexe bin/Linux/x86/nexuiz-dedicated fi dodir /opt/nexuiz/data insinto /opt/nexuiz/data insopts -m0444 -o ${GAMES_USER} -g ${GAMES_GROUP} doins data/* || die "failed copying data files" insinto /usr/share/pixmaps insopts -m0444 doins nexuiz.xpm games_make_wrapper nexuiz-sdl ./nexuiz-sdl /opt/nexuiz use dedicated && games_make_wrapper nexuiz-dedicated ./nexuiz-dedicated /opt/nexuiz # creating desktop entry make_desktop_entry nexuiz-sdl "Nexuiz" /usr/share/pixmaps/nexuiz.xpm Game \ || die "failed creating desktop entry" }