1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Epic Bonus Pack for UT2003"
9 HOMEPAGE="http://www.moddb.com/games/unreal-tournament-2003"
10 SRC_URI="http://ftp.student.utwente.nl/pub/games/UT2003/BonusPack/UT2003-epicbonuspackone.exe"
18 DEPEND="app-arch/unzip"
19 RDEPEND="games-fps/ut2003"
21 S=${WORKDIR}/UT2003-BonusPack
23 dir=${GAMES_PREFIX_OPT}/ut2003
27 unzip -qq "${DISTDIR}"/${A} || die
28 # This is done since the files are the same
29 rm -f "${S}"/Textures/LastManStanding.utx || die
34 newins "${S}"/Help/BonusPackReadme.txt EpicBonusPack.README
37 doexe "${FILESDIR}"/epic-installer
40 cp -r "${S}"/{Maps,Sounds,StaticMeshes,Textures} "${Ddir}" || die
41 cp "${S}"/System/{*.{det,est,frt,int,itt,kot,tmt,u},User.ini} "${Ddir}"/System || die
42 cp -v "${S}"/System/Manifest.ini "${Ddir}"/System/Manifest.ini.epic || die
49 elog "You will need to run:"
50 elog "emerge --config =${CATEGORY}/${PF}"
51 elog "to make the necessary changes to the system .ini files."
53 elog "Each user whom has already played the game will need to run:"
54 elog " ${dir}/epic-installer"
56 elog "to update their configuration files in their home directory."
61 cd ${dir}/System || die
62 cp Manifest.ini Manifest.ini.pre-epic || die
63 cp ${dir}/System/Manifest.ini.epic Manifest.ini || die
65 cp Default.ini Default.ini.pre-epic || die
66 cat >> Default.ini <<EOT
68 [Xinterface.Tab_AudioSettings]
69 BonusPackInfo[1]=(PackageName="AnnouncerEvil.uax",Description="Evil")
70 BonusPackInfo[2]=(PackageName="AnnouncerFemale.uax",Description="Female")
71 BonusPackInfo[3]=(PackageName="AnnouncerSexy.uax",Description="Aroused")
75 ed Default.ini >/dev/null 2>&1 <<EOT
76 /\[xInterface.ExtendedConsole\]
78 MusicManagerClassName=OGGPlayer.UT2OGGMenu
84 ed Default.ini >/dev/null 2>&1 <<EOT
88 EditPackages=BonusPack
89 EditPackages=SkaarjPack
90 EditPackages=SkaarjPack_rc
96 ed Default.ini >/dev/null 2>&1 <<EOT
100 ServerPackages=BonusPack
101 ServerPackages=SkaarjPack
102 ServerPackages=SkaarjPack_rc
108 cp DefUser.ini DefUser.ini.pre-epic || die
109 sed -i 's/^F11=.*$/F11=MusicMenu/g' DefUser.ini || die
110 chown games:games ${dir}/System/*.ini || die