summaryrefslogtreecommitdiff
blob: 48211bae0e827646743b0e10dafa4c3046c5d75a (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/doom3-chextrek/doom3-chextrek-0.5_beta-r1.ebuild,v 1.3 2008/02/15 00:32:04 wolf31o2 Exp $

MOD_DESC="Green slimeballs mod for kids"
MOD_NAME="Chex Trek: Beyond the Quest"
MOD_DIR="chextrek"

inherit eutils versionator games games-mods

# Changes "0.5_beta" to "beta_0.5"
MY_PV=$(get_version_component_range 3-3)$(get_version_component_range 1-2)
MY_PV=${MY_PV/beta/beta_}
MY_P="chextrek${MY_PV}"

HOMEPAGE="http://www.chextrek.xv15mods.com/"
SRC_URI="mirror://filefront/Doom_III/Supported_Mods/Beta_Releases/Chex_Trek_Beyond_the_Quest/${MY_P}.zip"

LICENSE="as-is"

RDEPEND="games-fps/doom3"

S=${WORKDIR}

src_unpack() {
	games-mods_src_unpack
	mkdir -p ${MOD_DIR}
	mv ${MY_P}/*.{txt,pk4} ${MOD_DIR} || die
}

pkg_postinst() {
	games-mods_pkg_postinst
	elog "Press 'E' to open doors in the game."
	elog "Press 'M' to toggle the map."
	echo
}