-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebra-Ports.sh
More file actions
185 lines (177 loc) · 4.2 KB
/
Debra-Ports.sh
File metadata and controls
185 lines (177 loc) · 4.2 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
#!/bin/sh
if [ "$(id -u)" = "0" ]; then
echo "ERROR: Do not run Debra-Ports as root." >&2
exit 1
fi
mkdir ./Debra-Ports
cd ./Debra-Ports
dialog --msgbox "DO NOT RUN Debra-Ports ON UBUNTU BASED DISTROS" 0 0
cmd=(dialog --keep-tite --menu "Select a Port:" 22 76 16)
options=(1 "Dhewm3"
2 "Eduke32"
3 "Darkplaces (quake 1)"
4 "QuakeSpasm (quake 1,Librequake)"
5 "luanti (Minetest)"
6 "Ioq3 (Quake3)"
7 "taradino (Rise of the triad)"
8 "Yamagi Quake II"
9 "Yamagi Quake II (Git)"
10 "Yamagi Quake II (Remaster)"
11 "iortcw (Return to Castle Wolfenstein)"
12 "Wolf3D"
13 "DSDA-Doom (Doom,Heretic,Hexen)"
14 "UZDoom (Doom,Heretic,Hexen)"
15 "Classic-cube"
16 "Exit")
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices
do
case $choice in
1)
git clone https://github.com/dhewm/dhewm3.git
cd dhewm3/
cmake ./neo/
make -j$(nproc)
cd ..
cd ..
bash ./Debra-Ports.sh
;;
2)
git clone https://voidpoint.io/terminx/eduke32.git
cd eduke32/
make -j$(nproc) USE_OPENGL=0 POLYMER=0 USE_LIBVPX=0 OPTLEVEL=2 WITHOUT_GTK=1
cd ..
cd ..
bash ./Debra-Ports.sh
;;
3)
git clone https://github.com/DarkPlacesEngine/darkplaces.git
cd darkplaces/
make -j$(nproc) sdl-release
cd ..
cd ..
bash ./Debra-Ports.sh
;;
4)
git clone https://github.com/sezero/quakespasm.git
cd quakespasm/Quake/
make USE_SDL2=1
cd ..
cd ..
cd ..
bash ./Debra-Ports.sh
;;
5)
git clone --depth 1 https://github.com/luanti-org/luanti.git
cd luanti/
git clone --depth 1 https://github.com/minetest/minetest_game.git games/minetest_game
git clone --depth 1 https://github.com/minetest/irrlicht.git lib/irrlichtmt
git clone https://codeberg.org/SumianVoice/backroomtest.git games/backroomtest
cmake . -DRUN_IN_PLACE=TRUE
make -j$(nproc)
cd ..
cd ..
bash ./Debra-Ports.sh
;;
6)
git clone https://github.com/ioquake/ioq3.git
cd ioq3/
cmake ./
make -j$(nproc)
cd ..
cd ..
bash ./Debra-Ports.sh
;;
7)
git clone https://github.com/fabiangreffrath/taradino.git
cd taradino/
cmake ./
make -j$(nproc)
cd ..
cd ..
bash ./Debra-Ports.sh
;;
8)
wget https://github.com/yquake2/yquake2/archive/refs/tags/QUAKE2_8_60.zip
unzip *.zip
rm -rf ./*.zip
cd yquake2-QUAKE2_8_60/
make -j$(nproc)
cd ..
cd ..
bash ./Debra-Ports.sh
;;
9)
git clone https://github.com/yquake2/yquake2.git
cd yquake2
make -j$(nproc)
cd ..
cd ..
bash ./Debra-Ports.sh
;;
10)
git clone https://github.com/yquake2/yquake2remaster.git
cd yquake2remaster/
cmake ./
make -j$(nproc)
cd ..
cd ..
bash ./Debra-Ports.sh
;;
11)
git clone https://github.com/iortcw/iortcw.git
cd iortcw/
cd SP/
make -j$(nproc)
cd ..
cd MP/
make -j$(nproc)
cd ..
cd ..
cd ..
bash ./Debra-Ports.sh
;;
12)
git clone https://github.com/ECWolfEngine/ECWolf.git
cd ECWolf/
cmake ./
make -j$(nproc)
cd ..
cd ..
bash ./Debra-Ports.sh
;;
13)
git clone https://github.com/kraflab/dsda-doom.git
cd ./dsda-doom/
cd ./prboom2/
cmake ./
make -j$(nproc)
cd ..
cd ..
cd ..
bash ./Debra-Ports.sh
;;
14)
git clone https://github.com/UZDoom/UZDoom.git
mkdir -p UZDoom/build
cd UZDoom/build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja ..
cmake --build .
cd ..
cd ..
cd ..
bash ./Debra-Ports.sh
;;
15)
git clone https://github.com/ClassiCube/ClassiCube.git
cd ClassiCube
make -j$(nproc)
cd ..
cd ..
bash ./Debra-Ports.sh
;;
16)
exit
;;
esac
done