# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Headder: $ S=${WORKDIR}/${P} DESCRIPTION="Quake III total transformation realism based MOD" SRC_URI="http://gamefiles.blueyonder.co.uk/blueyondergames/quake3arena/modifications/urbanterror/patches/win32/beta24_full.zip http://gamefiles.blueyonder.co.uk/blueyondergames/quake3arena/modifications/urbanterror/patches/win32/beta25_upgrade.zip" HOMEPAGE="http://www.urbanterror.net" # it seems public domain but we should check that better. LICENSE="public-domain" DEPEND="app-arch/unzip" RDEPEND="virtual/glibc >=app-games/quake3-1.31" KEYWORDS="x86 -ppc -sparc -sparc64" SLOT="0" src_unpack() { unzip ${DISTDIR}/beta24_full.zip > /dev/null unzip ${DISTDIR}/beta25_upgrade.zip > /dev/null } src_compile () { chown -R root.games ${WORKDIR}/ find ${WORKDIR}/ -type d -print0 | xargs --null chmod 755 find ${WORKDIR}/ -type f -print0 | xargs --null chmod 744 } src_install() { dodir /opt/quake3 dodir /opt/quake3/q3ut2 mv ${WORKDIR}/* ${D}/opt/quake3/q3ut2/ } pkg_postinst() { echo -e "\t#########################################" echo -e "\t# Urban Terror's server browser isn't #" echo -e "\t# implemented yet, so maybe you will #" echo -e "\t# like to install a gameserver browser; #" echo -e "\t# emerge xqf for example. #" echo -e "\t# #" echo -e "\t# Urban terror masterserver should be #" echo -e "\t# added as a Quake3 Arena standard one. #" echo -e "\t# #" echo -e "\t# Urban Terror master server addr is: #" echo -e "\t# #" echo -e "\t# master.urbanterror.net:27950 #" echo -e "\t# #" echo -e "\t# If you download more maps, place them #" echo -e "\t# in pk3 format (unzip them) at: #" echo -e "\t# #" echo -e "\t# /opt/quake3/q3ut2/ #" echo -e "\t# #" echo -e "\t# By the way, use the quake3 MODS menu #" echo -e "\t# to start the game without connecting #" echo -e "\t# anywhere #" echo -e "\t#########################################" }