-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmesa.sh
executable file
·556 lines (462 loc) · 15.7 KB
/
mesa.sh
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
#!/usr/bin/env bash
#sudo apt install libglvnd-dev=1.3.2-1 libglvnd-core-dev=1.3.2-1 libglvnd0=1.3.2-1 libegl1=1.3.2-1 libgles1=1.3.2-1 libgles2=1.3.2-1 libgles-dev=1.3.2-1 libgl1=1.3.2-1 libgl-dev=1.3.2-1 libglx0=1.3.2-1 libglx-dev=1.3.2-1 libopengl0=1.3.2-1 libopengl-dev=1.3.2-1 libegl-dev=1.3.2-1
:<<'MYCOMMENT'
***DPKG VERSION NUMBERS***
MYCOMMENT
COUNTER=0
vMSN=1.0.0-1.1
vLD=0.1.1-1
vWL=1.21.0-1
vWLP=1.31-1
vVK=1.3.239.0-1
vDRM=2.4.114-1
vGLVND=1.6.0-1
vMESA=23.2.0-1
vVKT=1.3.239.0+dfsg1-1
vSDL=2.26.5+dfsg-1
vWLR=0.16.0-3
vSTD=0.6.4-1
vLI=1.21.0-1
vSV=1.6.1+1.3.226.0-1
vSVT=2022.3-1
SVN=https://github.com/bluestang2006/Debian-Pkgs/trunk
XORG=https://salsa.debian.org/xorg-team
WLR=https://salsa.debian.org/swaywm-team
LOG=raw/debian-unstable/debian/changelog
LOG2=raw/debian/sid/debian/changelog
build_dpkg()
{
dpkg-buildpackage -b -us -uc
cd $SRCSDIR; sudo dpkg -i *.deb
if [ -d "$DIR-debfiles" ]; then
cd $DIR-debfiles; rm -v *.deb *.buildinfo *.changes *.udeb
cd $SRCSDIR; mv -v *.deb *.buildinfo *.changes *.udeb $DIR-debfiles
else
mkdir $DIR-debfiles
mv -v *.deb *.buildinfo *.changes *.udeb $DIR-debfiles
fi
}
:<<'MYCOMMENT'
***APT UPDATE&UPGRADE/GET BUILD DEPENDENCIES***
MYCOMMENT
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mApt Update & Full-Upgrade\e[39m"
sudo apt update && sudo apt full-upgrade -y
if [ "$(dpkg -s subversion | awk '/Version:/{gsub(",","");print $2}')" != "1.14.1-3" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mInstalling Dependencies\e[39m"
sudo apt install -y libxcb-randr0-dev libxrandr-dev \
libxcb-xinerama0-dev libxinerama-dev libxcursor-dev \
libxcb-cursor-dev libxkbcommon-dev xutils-dev \
libpthread-stubs0-dev libpciaccess-dev x11proto-gl-dev \
libffi-dev x11proto-xext-dev libxcb1-dev libxcb-*dev \
bison flex libssl-dev libgnutls28-dev x11proto-dri2-dev \
x11proto-dri3-dev libx11-dev libxcb-glx0-dev debhelper \
libx11-xcb-dev libxext-dev libxdamage-dev libxfixes-dev \
libva-dev x11proto-randr-dev x11proto-present-dev \
libclc-dev libelf-dev mesa-utils xwayland libcap-dev \
libgbm-dev libxshmfence-dev libxxf86vm-dev valgrind \
libunwind-dev libzstd-dev googletest cmake meson \
spirv-tools spirv-headers glslang-tools glslang-dev \
libevdev-dev mesa-utils mesa-utils-extra dos2unix \
libsdl2-mixer-dev libsdl2-image-dev libsdl2-ttf-dev \
quilt xsltproc python3-libxml2 xvfb subversion \
devscripts libv4l-dev libavcodec-dev libavformat-dev \
sqlite3 libsensors-dev libvdpau-dev python3-mako \
llvm-11-dev libclang-11-dev graphviz doxygen \
libclang-cpp11-dev libudev-dev libpixman-1-dev \
libsamplerate0-dev fcitx-libs-dev libpipewire-0.3-dev \
libatomic-ops-dev libvulkan-dev libglvnd-core-dev \
vulkan-tools ninja-build libcunit1-dev libcairo2-dev \
libinput-dev libxml2-dev xmlto docbook-xsl scdoc \
libsystemd-dev libmtdev-dev check libgtk-3-dev \
python3-libevdev python3-pyudev
fi
if [ -d "$HOME/sources" ]; then
SRCSDIR="$HOME/sources/"
else
cd $HOME; mkdir sources
SRCSDIR="$HOME/sources/"
fi
:<<'MYCOMMENT'
***MESON***
MYCOMMENT
if [ "$(dpkg -s meson | awk '/Version:/{gsub(",","");print $2}')" != "$vMSN" ]; then
cd $SRCSDIR; mkdir meson-debfiles; cd meson-debfiles
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet MESON v$vMSN\e[39m"
wget http://http.us.debian.org/debian/pool/main/m/meson/meson_"$vMSN"_all.deb
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mInstall MESON v$vMSN\e[39m"
sudo dpkg -i *.deb; cd $SRCSDIR
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mMESON is Up-to-Date\e[39m"
else
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mMESON is Up-to-Date\e[39m"
fi
:<<'MYCOMMENT'
***LIBDECOR***
MYCOMMENT
if [ "$(dpkg -s libdecor-0-dev | awk '/Version:/{gsub(",","");print $2}')" != "$vLD" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet LIBDECOR\e[39m"
DIR="$HOME/sources/libdecor-0"
if [ -d "$DIR" ]; then
cd $DIR; git pull
else
cd $SRCSDIR; git clone https://salsa.debian.org/sdl-team/libdecor-0.git libdecor-0
cd $DIR
fi
git checkout debian/0.1.1-1
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild LIBDECOR\e[39m"
build_dpkg
fi
if [ "$(dpkg -s libdecor-0-dev | awk '/Version:/{gsub(",","");print $2}')" == "$vLD" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mLIBDECOR is Up-to-Date\e[39m"
fi
:<<'MYCOMMENT'
***WAYLAND***
MYCOMMENT
if [ "$(dpkg -s libwayland-dev | awk '/Version:/{gsub(",","");print $2}')" != "$vWL" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet WAYLAND\e[39m"
DIR="$HOME/sources/wayland"
if [ -d "$DIR" ]; then
cd $DIR; git pull
else
cd $SRCSDIR; git clone https://salsa.debian.org/xorg-team/wayland/wayland.git wayland
cd $DIR
fi
git checkout wayland-$vWL
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild WAYLAND\e[39m"
build_dpkg
fi
if [ "$(dpkg -s libwayland-dev | awk '/Version:/{gsub(",","");print $2}')" == "$vWL" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mWAYLAND is Up-to-Date\e[39m"
fi
:<<'MYCOMMENT'
***WAYLAND PROTOCOLS***
MYCOMMENT
if [ "$(dpkg -s wayland-protocols | awk '/Version:/{gsub(",","");print $2}')" != "$vWLP" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet WAYLAND PROTOCOLS\e[39m"
DIR="$HOME/sources/wayland-protocols"
if [ -d "$DIR" ]; then
cd $DIR; git pull
else
cd $SRCSDIR; git clone https://salsa.debian.org/xorg-team/wayland/wayland-protocols.git wayland-protocols
cd $DIR
fi
git checkout wayland-protocols-$vWLP
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild WAYLAND PROTOCOLS\e[39m"
build_dpkg
fi
if [ "$(dpkg -s wayland-protocols | awk '/Version:/{gsub(",","");print $2}')" == "$vWLP" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mWAYLAND PROTOCOLS is Up-to-Date\e[39m"
fi
:<<'MYCOMMENT'
***SEATD***
#MYCOMMENT
if [ "$(dpkg -s libseat1 | awk '/Version:/{gsub(",","");print $2}')" != "$vSTD" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet SEATD\e[39m"
DIR="$HOME/sources/seatd"
if [ -d "$DIR" ]; then
cd $DIR; git pull
else
cd $SRCSDIR; git clone --single-branch --branch debian/master https://git.devuan.org/devuan/seatd.git seatd
cd $DIR
fi
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild SEATD\e[39m"
build_dpkg
fi
if [ "$(dpkg -s libseat1 | awk '/Version:/{gsub(",","");print $2}')" == "$vSTD" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mSEATD is Up-to-Date\e[39m"
fi
MYCOMMENT
:<<'MYCOMMENT'
***LIBINPUT***
#MYCOMMENT
if [ "$(dpkg -s libinput-dev | awk '/Version:/{gsub(",","");print $2}')" != "$vLI" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet LIBINPUT\e[39m"
DIR="$HOME/sources/libinput"
if [ -d "$DIR" ]; then
cd $DIR; git pull
else
cd $SRCSDIR; git clone --single-branch --branch debian-unstable https://salsa.debian.org/xorg-team/lib/libinput.git libinput
cd $DIR
fi
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild LIBINPUT\e[39m"
build_dpkg
fi
if [ "$(dpkg -s libinput-dev | awk '/Version:/{gsub(",","");print $2}')" == "$vLI" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mLIBINPUT is Up-to-Date\e[39m"
fi
MYCOMMENT
:<<'MYCOMMENT'
***VULKAN HEADERS/LOADER***
MYCOMMENT
if [ "$(dpkg -s libvulkan-dev | awk '/Version:/{gsub(",","");print $2}')" != "$vVK" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet VULKAN\e[39m"
DIR="$HOME/sources/vulkan-loader"
VK="$(echo v$vVK | awk '{ print substr( $0, 1, length($0)-4 ) }')"
if [ -d "$DIR" ]; then
cd $DIR; git pull;
else
cd $SRCSDIR; git clone https://salsa.debian.org/xorg-team/vulkan/vulkan-loader.git vulkan-loader
cd $DIR
fi
git checkout vulkan-loader-$vVK
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild VULKAN\e[39m"
build_dpkg
fi
if [ "$(dpkg -s libvulkan-dev | awk '/Version:/{gsub(",","");print $2}')" == "$vVK" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mVULKAN is Up-to-Date\e[39m"
fi
:<<'MYCOMMENT'
***LIBDRM***
MYCOMMENT
if [ "$(dpkg -s libdrm2 | awk '/Version:/{gsub(",","");print $2}')" != "$vDRM" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet MESA DRM\e[39m"
DIR="$HOME/sources/libdrm"
if [ -d "$DIR" ]; then
cd $DIR; git pull
else
cd $SRCSDIR; git clone https://salsa.debian.org/xorg-team/lib/libdrm.git libdrm
cd $DIR
fi
git checkout libdrm-$vDRM
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild MESA DRM\e[39m"
build_dpkg
fi
if [ "$(dpkg -s libdrm2 | awk '/Version:/{gsub(",","");print $2}')" == "$vDRM" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mMESA DRM is Up-to-Date\e[39m"
fi
:<<'MYCOMMENT'
***LIBGLVND***
MYCOMMENT
if [ "$(dpkg -s libglvnd-dev | awk '/Version:/{gsub(",","");print $2}')" == "1.3.2-1" ]; then
sudo dpkg -r --force-depends libglvnd-dev
fi
if [ "$(dpkg -s libglvnd0 | awk '/Version:/{gsub(",","");print $2}')" != "$vGLVND" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet LIBGLVND\e[39m"
DIR="$HOME/sources/libglvnd"
if [ -d "$DIR" ]; then
cd $DIR; git pull
else
cd $SRCSDIR; git clone https://salsa.debian.org/xorg-team/lib/libglvnd.git libglvnd
cd $DIR
fi
git checkout libglvnd-$vGLVND
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild LIBGLVND\e[39m"
build_dpkg
fi
if [ "$(dpkg -s libglvnd0 | awk '/Version:/{gsub(",","");print $2}')" == "$vGLVND" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mLIBGLVND is Up-to-Date\e[39m"
fi
:<<'MYCOMMENT'
***MESA***
MYCOMMENT
if [ "$(dpkg -s libgbm1 | awk '/Version:/{gsub(",","");print $2}')" != "$vMESA" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet V3DV\e[39m"
DIR="$HOME/sources/mesa"
if [ -d "$DIR" ]; then
cd $DIR; git pull
else
cd $SRCSDIR; git clone --single-branch --branch main https://gitlab.freedesktop.org/mesa/mesa.git mesa
cd $DIR
fi
svn checkout $SVN/mesa/debian
cd $DIR/debian; sudo rm -r changelog
wget $XORG/lib/mesa/-/$LOG
cd $DIR; DEBEMAIL="Bluestang <[email protected]>" dch -v $vMESA "Upstream MESA"
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild V3DV\e[39m"
build_dpkg
fi
if [ "$(dpkg -s libgbm1 | awk '/Version:/{gsub(",","");print $2}')" == "$vMESA" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mV3DV is Up-to-Date\e[39m"
fi
:<<'MYCOMMENT'
***WLROOTS***
#MYCOMMENT
if [ "$(dpkg -s libwlroots-dev | awk '/Version:/{gsub(",","");print $2}')" != "$vWLR" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet WLROOTS\e[39m"
DIR="$HOME/sources/wlroots"
if [ -d "$DIR" ]; then
cd $DIR; git pull
else
cd $SRCSDIR; git clone https://gitlab.freedesktop.org/wlroots/wlroots.git wlroots
cd $DIR
fi
svn checkout $SVN/wlroots/debian
cd $DIR/debian; sudo rm -r changelog
wget $WLR/wlroots/-/$LOG2
cd $DIR; DEBEMAIL="Bluestang <[email protected]>" dch -v $vWLR "Upstream Wayland Roots"
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild WLROOTS\e[39m"
build_dpkg
fi
if [ "$(dpkg -s libwlroots-dev | awk '/Version:/{gsub(",","");print $2}')" == "$vWLR" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mWLROOTS is Up-to-Date\e[39m"
fi
MYCOMMENT
:<<'MYCOMMENT'
***VULKAN-TOOLS***
MYCOMMENT
if [ "$(dpkg -s vulkan-tools | awk '/Version:/{gsub(",","");print $2}')" != "$vVKT" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet VULKAN TOOLS\e[39m"
DIR="$HOME/sources/vulkan-tools"
if [ -d "$DIR" ]; then
cd $DIR; git pull;
else
cd $SRCSDIR; git clone https://salsa.debian.org/xorg-team/vulkan/vulkan-tools.git vulkan-tools
cd $DIR
fi
git checkout vulkan-tools-$vVKT
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild VULKAN TOOLS\e[39m"
build_dpkg
fi
if [ "$(dpkg -s vulkan-tools | awk '/Version:/{gsub(",","");print $2}')" == "$vVKT" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mVULKAN TOOLS is Up-to-Date\e[39m"
fi
:<<'MYCOMMENT'
***SPIRV-HEADERS***
#MYCOMMENT
if [ "$(dpkg -s spirv-headers | awk '/Version:/{gsub(",","");print $2}')" != "$vSV" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet SPIRV-HEADERS\e[39m"
DIR="$HOME/sources/spirv-headers"
if [ -d "$DIR" ]; then
cd $DIR; git pull;
else
cd $SRCSDIR; git clone https://github.com/KhronosGroup/SPIRV-Headers.git spirv-headers
cd $DIR
fi
#git checkout $VK
svn checkout $SVN/spirv-headers/debian
cd $DIR/debian; sudo rm -r changelog
wget $XORG/vulkan/spirv-headers/-/$LOG
cd $DIR; DEBEMAIL="Bluestang <[email protected]>" dch -v $vSV "Upstream SPIRV-HEADERS"
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild SPIRV-HEADERS\e[39m"
build_dpkg
fi
if [ "$(dpkg -s spirv-headers | awk '/Version:/{gsub(",","");print $2}')" == "$vSV" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mSPIRV-HEADERS is Up-to-Date\e[39m"
fi
MYCOMMENT
:<<'MYCOMMENT'
***SPIRV-TOOLS***
#MYCOMMENT
if [ "$(dpkg -s spirv-tools | awk '/Version:/{gsub(",","");print $2}')" != "$vSVT" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet SPIRV-TOOLS\e[39m"
DIR="$HOME/sources/spirv-tools"
if [ -d "$DIR" ]; then
cd $DIR; git pull;
else
cd $SRCSDIR; git clone https://github.com/KhronosGroup/SPIRV-Tools.git spirv-tools
cd $DIR
fi
#git checkout $VK
svn checkout $SVN/spirv-tools/debian
cd $DIR/debian; sudo rm -r changelog
wget $XORG/vulkan/spirv-tools/-/$LOG
cd $DIR; DEBEMAIL="Bluestang <[email protected]>" dch -v $vSVT "Upstream SPIRV-TOOLS"
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild SPIRV-TOOLS\e[39m"
build_dpkg
fi
if [ "$(dpkg -s spirv-tools | awk '/Version:/{gsub(",","");print $2}')" == "$vSVT" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mSPIRV-HEADERS is Up-to-Date\e[39m"
fi
MYCOMMENT
:<<'MYCOMMENT'
***VULKAN-VALIDATIONLAYERS***
#MYCOMMENT
if [ "$(dpkg -s vulkan-validationlayers | awk '/Version:/{gsub(",","");print $2}')" != "$vVK" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet VULKAN-VALIDATIONLAYERS\e[39m"
DIR="$HOME/sources/vulkan-layers"
if [ -d "$DIR" ]; then
cd $DIR; git pull;
else
cd $SRCSDIR; git clone https://github.com/KhronosGroup/Vulkan-ValidationLayers.git vulkan-layers
cd $DIR
fi
git checkout $VK
svn checkout $SVN/vulkan-layers/debian
cd $DIR/debian; sudo rm -r changelog
wget $XORG/vulkan/vulkan-validationlayers/-/$LOG
cd $DIR; DEBEMAIL="Bluestang <[email protected]>" dch -v $vVK "Upstream VULKAN VALIDATION LAYERS"
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild VULKAN-VALIDATIONLAYERS\e[39m"
build_dpkg
fi
if [ "$(dpkg -s vulkan-validationlayers | awk '/Version:/{gsub(",","");print $2}')" == "$vVK" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mVULKAN-VALIDATIONLAYERS is Up-to-Date\e[39m"
fi
MYCOMMENT
:<<'MYCOMMENT'
***SDL2***
MYCOMMENT
if [ "$(dpkg -s libsdl2-dev | awk '/Version:/{gsub(",","");print $2}')" != "$vSDL" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mGet SDL2\e[39m"
DIR="$HOME/sources/SDL2"
SDL="$(echo $vSDL | awk '{ print substr( $0, 1, length($0)-7 ) }')"
if [ -d "$DIR" ]; then
cd $DIR; git pull
else
cd $SRCSDIR; git clone https://salsa.debian.org/sdl-team/libsdl2.git SDL2
fi
git checkout debian/$vSDL
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mBuild SDL2\e[39m"
build_dpkg
fi
if [ "$(dpkg -s libsdl2-dev | awk '/Version:/{gsub(",","");print $2}')" == "$vSDL" ]; then
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mSDL2 is Up-to-Date\e[39m"
fi
:<<'MYCOMMENT'
***VERIFY PKGS***
MYCOMMENT
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mDisplay Updated Mesa Driver\e[39m"
vulkaninfo | grep 'apiVersion\|driverVersion\|deviceName\|Vulkan Instance Version'
glxinfo -B
let COUNTER++
echo -e "\e[1m\e[94m$COUNTER. \e[96mSDL2 Version:\e[39m"
sdl2-config --version