forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doom3-hellcampaign-1-r1.ebuild
46 lines (35 loc) · 1.09 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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
MOD_DESC="map pack for Doom 3"
MOD_NAME="Hell Campaign"
MOD_DIR="hell_campaign"
inherit games games-mods
HOMEPAGE="http://www.gamefront.com/files/listing/gamingfiles/Doom_III/Maps/Map_Packs/"
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
}