summaryrefslogtreecommitdiff
blob: d42bd801c5eda63d81d6969ed860d478b88af018 (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
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit games unpacker

DESCRIPTION="Community Bonus Pack for UT2003"
HOMEPAGE="https://liandri.beyondunreal.com/Unreal_Tournament_2003"
SRC_URI="https://downloads.unrealadmin.org/UT2003/BonusPack/cbp2003.zip"

LICENSE="ut2003"
SLOT="1"
KEYWORDS="~x86"
RESTRICT="bindist mirror strip"

RDEPEND="games-fps/ut2003"
DEPEND="${RDEPEND}
	app-arch/unzip"

S=${WORKDIR}

dir=${GAMES_PREFIX_OPT}/ut2003
Ddir=${D}/${dir}

src_unpack() {
	unpack_zip "${DISTDIR}"/${A}
}

src_install() {
	for i in Animations Help Music Maps StaticMeshes Textures System
	do
		mkdir -p "${Ddir}"/${i} || die
	done
	games_umod_unpack CBP2003.ut2mod
	rm "${Ddir}/Readme.txt" "${Ddir}/cbp installer logo1.bmp"
	prepgamesdirs
}