diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-fps/ut2003-bonuspack-epic |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-fps/ut2003-bonuspack-epic')
-rw-r--r-- | games-fps/ut2003-bonuspack-epic/Manifest | 6 | ||||
-rw-r--r-- | games-fps/ut2003-bonuspack-epic/files/epic-installer | 48 | ||||
-rw-r--r-- | games-fps/ut2003-bonuspack-epic/metadata.xml | 8 | ||||
-rw-r--r-- | games-fps/ut2003-bonuspack-epic/ut2003-bonuspack-epic-1.ebuild | 110 |
4 files changed, 172 insertions, 0 deletions
diff --git a/games-fps/ut2003-bonuspack-epic/Manifest b/games-fps/ut2003-bonuspack-epic/Manifest new file mode 100644 index 000000000000..d7a6096ecefd --- /dev/null +++ b/games-fps/ut2003-bonuspack-epic/Manifest @@ -0,0 +1,6 @@ +AUX epic-installer 925 SHA256 8d72b3bf41010b0f6e37057dc5f5d3b0dfb1c675ac5375e8f1ffff68c7fb2983 SHA512 0e49953e28c1be196c67d5d29a5f6ac0f636f1315a18bf883c35c8236b74f4a5aea45693fba013578592bb0601a9eaa734446cfd533af70db9a24371162c2524 WHIRLPOOL 09fa7c10589e1fa2231a3f21b70cf0766afbbf16a2d957443f68f1ce6afe785d926fedb9317a43bb8225cb945db4e94e91f57207444d4cf04128c85c2f836ebb +DIST UT2003-epicbonuspackone.exe 156913152 SHA256 034a1641c447e2d933ae89e02fecdd2c0358d041dcf3f7996663aaf6901cee21 SHA512 26fa06637c6a99704d11b58f5fe54454f8018c6f07b06b6a9a2075d17b9a9fb7d7155298de5502cefa0f07995f4513ce9531863cef8c344996b5e6dd5fbd339d WHIRLPOOL 681311f3515b0d3e266159d5ceeb76120567e1f90bef2e1da124aa8b54865caee5d86ae3ff5a2272f29922bf66378bb9f22c65eaf80fa1d414d34b9e899d0acb +EBUILD ut2003-bonuspack-epic-1.ebuild 2502 SHA256 c946f541bf068de88888e793297ab4372442aad2c1c5a5f52e14c8a65d26c47b SHA512 cd4b9b2abdfab58a17818afb41b272a75dfc6d329c9a4f303226d76834875f835485ac13cb97318e2f1646e97ac3adaa754ca5779a98f9ca33e0c0f68cb20585 WHIRLPOOL 99ab989b9567f79c89daa174291304f0adf494a7cd50e787e660ede71821e94ecc84763045db3e92724a71fab89b10482f3e49b1ff7f31ae2e83acece089e33f +MISC ChangeLog 2619 SHA256 f534eca6e322f76a8155798eea74842ce3fc2c3a62930ddf37c5cec28c044f5a SHA512 09c612efd4c2890a9e1d1bd51f51f98220d9db302a24f833d517c3f5752d0b7460d0592eae5558b49b04744b52c33a591e3e54b02b20dabe2cd671f4374f1f2d WHIRLPOOL 4bffbaa40dbd85a78f4803ff1e465b6249e90f4b035307729caf24bcb14e1ea56c764c1b5b7e19b453d7b49673bd118dc780e2ed9d1664006f1957fe2c91b303 +MISC ChangeLog-2015 2659 SHA256 58f38f5a101b2039d3f91125c6a7fb773e04c465cec0f6457215558efa949c4e SHA512 e27d692a634280f74b49f2371a5d5d3cf592a4832d64ac7206b3ad1af1b29bf54753e2e2b0fd5429dadb5c1c90d72d9782f6469eb32101bdcef4141c34d16b1a WHIRLPOOL 06fdd61fac3fd6a4f97b7bda58260a3b268b6b7fbb428cce041e336ae5fdbe6dd5509e7e1fb0bd005984e1b8c9130be909156010ec9ba93735a76b84cdcaa574 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-fps/ut2003-bonuspack-epic/files/epic-installer b/games-fps/ut2003-bonuspack-epic/files/epic-installer new file mode 100644 index 000000000000..a8c35aa0c751 --- /dev/null +++ b/games-fps/ut2003-bonuspack-epic/files/epic-installer @@ -0,0 +1,48 @@ +#!/bin/bash + +if [[ -d $HOME/.ut2003/System ]] ; then + cd "$HOME/.ut2003/System" + echo "Editing UT2003.ini in $PWD" + cat >> UT2003.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 UT2003.ini >/dev/null 2>&1 <<EOT +/\[xInterface.ExtendedConsole\] +a +MusicManagerClassName=OGGPlayer.UT2OGGMenu +. +wq +EOT + + ed UT2003.ini >/dev/null 2>&1 <<EOT +$ +?EditPackages? +a +EditPackages=BonusPack +EditPackages=SkaarjPack +EditPackages=SkaarjPack_rc +. +wq +EOT + + ed UT2003.ini >/dev/null 2>&1 <<EOT +$ +?ServerPackages? +a +ServerPackages=BonusPack +ServerPackages=SkaarjPack +ServerPackages=SkaarjPack_rc +. +wq +EOT + + echo "Editing User.ini in $PWD" + sed 's/^F11=.*$/F11=MusicMenu/g' < User.ini > User.ini~~ + mv User.ini~~ User.ini +fi diff --git a/games-fps/ut2003-bonuspack-epic/metadata.xml b/games-fps/ut2003-bonuspack-epic/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-fps/ut2003-bonuspack-epic/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-fps/ut2003-bonuspack-epic/ut2003-bonuspack-epic-1.ebuild b/games-fps/ut2003-bonuspack-epic/ut2003-bonuspack-epic-1.ebuild new file mode 100644 index 000000000000..08c1832a65fa --- /dev/null +++ b/games-fps/ut2003-bonuspack-epic/ut2003-bonuspack-epic-1.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit games + +DESCRIPTION="Epic Bonus Pack for UT2003" +HOMEPAGE="http://www.moddb.com/games/unreal-tournament-2003" +SRC_URI="http://ftp.student.utwente.nl/pub/games/UT2003/BonusPack/UT2003-epicbonuspackone.exe" + +LICENSE="ut2003" +SLOT="1" +KEYWORDS="x86" +IUSE="" +RESTRICT="strip" + +DEPEND="app-arch/unzip" +RDEPEND="games-fps/ut2003" + +S=${WORKDIR}/UT2003-BonusPack + +dir=${GAMES_PREFIX_OPT}/ut2003 +Ddir=${D}/${dir} + +src_unpack() { + unzip -qq "${DISTDIR}"/${A} || die + # This is done since the files are the same + rm -f "${S}"/Textures/LastManStanding.utx || die +} + +src_install() { + insinto "${dir}"/Help + newins "${S}"/Help/BonusPackReadme.txt EpicBonusPack.README + + exeinto "${dir}" + doexe "${FILESDIR}"/epic-installer + dodir "${dir}"/System + + 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 + + prepgamesdirs +} + +pkg_postinst() { + games_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() { + cd ${dir}/System || die + cp Manifest.ini Manifest.ini.pre-epic || die + cp ${dir}/System/Manifest.ini.epic Manifest.ini || die + + cp Default.ini Default.ini.pre-epic || die + 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 + + cp DefUser.ini DefUser.ini.pre-epic || die + sed -i 's/^F11=.*$/F11=MusicMenu/g' DefUser.ini || die + chown games:games ${dir}/System/*.ini || die +} |