From 5100ffd8b60248391af5df5a30b9250e6b7aa9e8 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Tue, 28 Jul 2026 23:41:16 +0100 Subject: [PATCH] games-fps/ut2004-bonuspack-xp: New package These maps were previously included in games-fps/ut2004-bonuspack-ece, but they should not have been. They were never included in any release of the game or in any other bonus pack, and they are not installed by OldUnreal's installer. Signed-off-by: James Le Cuirot --- games-fps/ut2004-bonuspack-xp/Manifest | 1 + games-fps/ut2004-bonuspack-xp/metadata.xml | 8 ++++ .../ut2004-bonuspack-xp-1.ebuild | 41 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 games-fps/ut2004-bonuspack-xp/Manifest create mode 100644 games-fps/ut2004-bonuspack-xp/metadata.xml create mode 100644 games-fps/ut2004-bonuspack-xp/ut2004-bonuspack-xp-1.ebuild diff --git a/games-fps/ut2004-bonuspack-xp/Manifest b/games-fps/ut2004-bonuspack-xp/Manifest new file mode 100644 index 0000000000000..e891802ac7d77 --- /dev/null +++ b/games-fps/ut2004-bonuspack-xp/Manifest @@ -0,0 +1 @@ +DIST UT2004-ONSBonusMapPack.zip 11018471 BLAKE2B bc915d6942c321df4031b02eaa25f83793b3fa1f2bb916c5d413c5569a3f887b6517fc4dceb8cb914e22be62f58512e727a41d5efbc6066113be12a9da9621d0 SHA512 8193375b89cd6fbc8b00de195797099c128fcf5cb73757bbc57d3c5350c497a878eaf0200f2e0711bf062e25c5d170e05b055c63f85b908b18dcc89572d71fd2 diff --git a/games-fps/ut2004-bonuspack-xp/metadata.xml b/games-fps/ut2004-bonuspack-xp/metadata.xml new file mode 100644 index 0000000000000..1c3ba213c494a --- /dev/null +++ b/games-fps/ut2004-bonuspack-xp/metadata.xml @@ -0,0 +1,8 @@ + + + + + games@gentoo.org + Gentoo Games Project + + diff --git a/games-fps/ut2004-bonuspack-xp/ut2004-bonuspack-xp-1.ebuild b/games-fps/ut2004-bonuspack-xp/ut2004-bonuspack-xp-1.ebuild new file mode 100644 index 0000000000000..d80023c009ff6 --- /dev/null +++ b/games-fps/ut2004-bonuspack-xp/ut2004-bonuspack-xp-1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=9 + +DESCRIPTION="UT2004 XP Bonus Maps" +HOMEPAGE="https://liandri.beyondunreal.com/Unreal_Tournament_2004" +SRC_URI="http://unrealmassdestruction.com/downloads/ut2k4/essentials/UT2004-ONSBonusMapPack.zip" +S="${WORKDIR}" + +LICENSE="free-noncomm" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +RESTRICT="strip" + +BDEPEND=" + app-arch/unzip + >=games-fps/ut2004-3374_pre23 +" +RDEPEND=" + games-fps/ut2004-data + !games-fps/ut2004-bonuspack-ece +" + +src_unpack() { + mkdir Maps || die + cd Maps || die + default +} + +src_compile() { + ut2004-ucc exportcache -mod=Gentoo Maps/*.ut2 || die + # The base game already knows about these maps, so it writes the cache to a + # single file rather than separate ones. We must rename to avoid a conflict. + mv -v System/{CacheRecords,${PN}}.ucl || die +} + +src_install() { + insinto /opt/ut2004 + doins -r * +}