forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quake1-movies-0.ebuild
84 lines (71 loc) · 1.98 KB
/
quake1-movies-0.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
inherit eutils games
DESCRIPTION="a collection of all the greatest Quake movies"
HOMEPAGE="http://www.planetquake.com/cineplex/history.html"
SRC_URI="https://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/camper.zip
https://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/rgb.zip
https://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/rgb2.zip
https://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/rgb3_preview.zip
https://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/ta2.zip
https://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/op_bays.zip
https://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/artifact.zip
https://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/blah/blahmov.zip
https://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/blah/blahouts.zip"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RESTRICT="mirror bindist"
RDEPEND=""
DEPEND="app-arch/unzip"
S=${WORKDIR}
myunpack() {
echo ">>> Unpacking $1 to ${PWD}"
unzip -qoLL "${DISTDIR}"/$1 || die "unpacking $1 failed"
}
src_unpack() {
cd "${S}"
einfo "Diary of a Camper ..."
mkdir id1
cd id1
myunpack camper.zip
mv movies.txt movies-camper.txt
cd "${S}"
einfo "Ranger Gone Bad ..."
cd id1
myunpack rgb.zip
mv movies.txt movies-rgb.txt
myunpack rgb2.zip
mv movies.txt movies-rgb2.txt
cd ..
myunpack rgb3_preview.zip
rm *.bat
mkdir ta2
cd ta2
myunpack ta2.zip
cd "${S}"
einfo "Operation Bayshield ..."
mkdir op_bays
cd op_bays
myunpack op_bays.zip
cd "${S}"
einfo "The Artifact ..."
mkdir artifact
cd artifact
myunpack artifact.zip
cd "${S}"
einfo "Blahbalicious ..."
myunpack blahmov.zip
rm *.bat
cd blah
myunpack blahouts.zip
cd "${S}"
edos2unix $(find . -name '*.txt' -o -name '*.cfg')
}
src_install() {
insinto "${GAMES_DATADIR}/quake1"
doins -r * || die "doins"
prepgamesdirs
}