summaryrefslogtreecommitdiff
path: root/games-fps/ut2004-bonuspack-cbp2/ut2004-bonuspack-cbp2-1-r5.ebuild
blob: 8faabbbf9fdc4db12a1cca48a2be893668eaca8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

DESCRIPTION="UT2004 Community Bonus Pack 2 Volume 1 and 2"
HOMEPAGE="https://liandri.beyondunreal.com/Unreal_Tournament_2004"
SRC_URI="
	https://unrealmassdestruction.com/downloads/ut2k4/essentials/cbp2-volume1_zip.zip
	https://unrealmassdestruction.com/downloads/ut2k4/essentials/cbp2-volume2_zip.zip
"
S="${WORKDIR}"

LICENSE="free-noncomm all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RESTRICT="bindist mirror strip"

BDEPEND="
	app-arch/unzip
	>=games-fps/ut2004-3374_pre23
"
RDEPEND="
	games-fps/ut2004-data
	games-fps/ut2004-bonuspack-cbp1
"

src_prepare() {
	default

	# In ut2004-bonuspack-cbp1.
	rm -v Music/Soeren.ogg || die

	# In ut2004-data with Mega Pack.
	rm -v Textures/Ty_RocketTextures.utx || die

	cd Help || die
	rm -v CBP2InstallerLogoP1.bmp Note.txt || die
	mv -v Readme.txt CBP2-Readme.txt || die
	mv -v GERROIDREADME.txt DOM-CBP2-Gerroid.txt || die
	mv -v ons-cbp2-valarna.txt ONS-CBP2-Valarna.txt || die
	mv -v Tydal.txt DM-CBP2-Tydal.txt || die
}

src_compile() {
	ut2004-ucc exportcache -mod=Gentoo System/*.u Maps/*.ut2 || die
}

src_install() {
	insinto /opt/ut2004
	doins -r *
}