You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
2.4 KiB
109 lines
2.4 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
13 years ago
|
|
||
|
DESCRIPTION="Epic Bonus Pack for UT2003"
|
||
6 years ago
|
HOMEPAGE="https://www.moddb.com/games/unreal-tournament-2003"
|
||
9 years ago
|
SRC_URI="http://ftp.student.utwente.nl/pub/games/UT2003/BonusPack/UT2003-epicbonuspackone.exe"
|
||
4 years ago
|
S="${WORKDIR}"/UT2003-BonusPack
|
||
13 years ago
|
|
||
|
LICENSE="ut2003"
|
||
|
SLOT="1"
|
||
7 years ago
|
KEYWORDS="~x86"
|
||
4 years ago
|
RESTRICT="bindist mirror strip"
|
||
13 years ago
|
|
||
4 years ago
|
RDEPEND="
|
||
|
acct-group/gamestat
|
||
|
games-fps/ut2003
|
||
|
"
|
||
|
BDEPEND="app-arch/unzip"
|
||
13 years ago
|
|
||
4 years ago
|
dir=opt/ut2003
|
||
|
Ddir="${ED}"/${dir}
|
||
13 years ago
|
|
||
|
src_unpack() {
|
||
9 years ago
|
unzip -qq "${DISTDIR}"/${A} || die
|
||
4 years ago
|
|
||
13 years ago
|
# This is done since the files are the same
|
||
9 years ago
|
rm -f "${S}"/Textures/LastManStanding.utx || die
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
insinto "${dir}"/Help
|
||
9 years ago
|
newins "${S}"/Help/BonusPackReadme.txt EpicBonusPack.README
|
||
13 years ago
|
|
||
|
exeinto "${dir}"
|
||
|
doexe "${FILESDIR}"/epic-installer
|
||
|
dodir "${dir}"/System
|
||
|
|
||
9 years ago
|
cp -r "${S}"/{Maps,Sounds,StaticMeshes,Textures} "${Ddir}" || die
|
||
|
cp "${S}"/System/{*.{det,est,frt,int,itt,kot,tmt,u},User.ini} "${Ddir}"/System || die
|
||
|
cp -v "${S}"/System/Manifest.ini "${Ddir}"/System/Manifest.ini.epic || die
|
||
13 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "You will need to run:"
|
||
|
elog "emerge --config =${CATEGORY}/${PF}"
|
||
|
elog "to make the necessary changes to the system .ini files."
|
||
|
elog
|
||
|
elog "Each user whom has already played the game will need to run:"
|
||
|
elog " ${dir}/epic-installer"
|
||
|
echo
|
||
|
elog "to update their configuration files in their home directory."
|
||
|
echo
|
||
|
}
|
||
|
|
||
|
pkg_config() {
|
||
9 years ago
|
cd ${dir}/System || die
|
||
|
cp Manifest.ini Manifest.ini.pre-epic || die
|
||
|
cp ${dir}/System/Manifest.ini.epic Manifest.ini || die
|
||
13 years ago
|
|
||
9 years ago
|
cp Default.ini Default.ini.pre-epic || die
|
||
13 years ago
|
cat >> Default.ini <<EOT
|
||
|
|
||
|
[Xinterface.Tab_AudioSettings]
|
||
|
BonusPackInfo[1]=(PackageName="AnnouncerEvil.uax",Description="Evil")
|
||
|
BonusPackInfo[2]=(PackageName="AnnouncerFemale.uax",Description="Female")
|
||
|
BonusPackInfo[3]=(PackageName="AnnouncerSexy.uax",Description="Aroused")
|
||
|
|
||
|
EOT
|
||
|
|
||
|
ed Default.ini >/dev/null 2>&1 <<EOT
|
||
|
/\[xInterface.ExtendedConsole\]
|
||
|
a
|
||
|
MusicManagerClassName=OGGPlayer.UT2OGGMenu
|
||
|
.
|
||
|
w
|
||
|
q
|
||
|
EOT
|
||
|
|
||
|
ed Default.ini >/dev/null 2>&1 <<EOT
|
||
|
$
|
||
|
?EditPackages?
|
||
|
a
|
||
|
EditPackages=BonusPack
|
||
|
EditPackages=SkaarjPack
|
||
|
EditPackages=SkaarjPack_rc
|
||
|
.
|
||
|
w
|
||
|
q
|
||
|
EOT
|
||
|
|
||
|
ed Default.ini >/dev/null 2>&1 <<EOT
|
||
|
$
|
||
|
?ServerPackages?
|
||
|
a
|
||
|
ServerPackages=BonusPack
|
||
|
ServerPackages=SkaarjPack
|
||
|
ServerPackages=SkaarjPack_rc
|
||
|
.
|
||
|
w
|
||
|
q
|
||
|
EOT
|
||
|
|
||
9 years ago
|
cp DefUser.ini DefUser.ini.pre-epic || die
|
||
|
sed -i 's/^F11=.*$/F11=MusicMenu/g' DefUser.ini || die
|
||
4 years ago
|
chown :gamestat "${dir}"/System/*.ini || die
|
||
13 years ago
|
}
|