forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doom3-hellcampaign-1-r1.ebuild
47 lines (36 loc) · 1.08 KB
/
doom3-hellcampaign-1-r1.ebuild
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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=2
MOD_DESC="map pack for Doom 3"
MOD_NAME="Hell Campaign"
MOD_DIR="hell_campaign"
inherit games games-mods
HOMEPAGE="http://doom3.filefront.com/file/The_Ultimate_Hell_Campaign;52013"
SRC_URI="sp_hc_final.zip
hardcorehellcampaign_patch.zip"
LICENSE="GameFront"
KEYWORDS="amd64 x86"
IUSE="dedicated opengl"
RESTRICT="fetch bindist"
pkg_nofetch() {
elog "Please download the following files:"
elog "http://www.filefront.com/4445166"
elog "http://www.filefront.com/4593578"
elog "and move them to ${DISTDIR}"
}
src_unpack() {
mkdir ${MOD_DIR}
cd ${MOD_DIR}
unpack ${A}
}
src_prepare() {
cd ${MOD_DIR}
# Prevent "non-portable" upper-case-filename warnings in Doom 3
mv -f "Hardcore Hell Campaign.pk4" hardcore_hell_campaign.pk4 || die
mv -f Q2Textures.pk4 q2Textures.pk4 || die
mv -f Q3Textures.pk4 q3Textures.pk4 || die
mv -f "Hardcore Hell Campaign.rtf" readme.rtf || die
# Show nice description in "mods" menu within Doom 3
echo "${MOD_NAME}" > description.txt
}