Skip to content

Commit e66dde8

Browse files
authored
create get-dependencies.sh
1 parent f2d5a91 commit e66dde8

File tree

1 file changed

+112
-0
lines changed

1 file changed

+112
-0
lines changed

get-dependencies.sh

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
#!/bin/sh
2+
3+
set -ex
4+
5+
sed -i 's/DownloadUser/#DownloadUser/g' /etc/pacman.conf
6+
7+
if [ "$(uname -m)" = 'x86_64' ]; then
8+
PKG_TYPE='x86_64.pkg.tar.zst'
9+
else
10+
PKG_TYPE='aarch64.pkg.tar.xz'
11+
fi
12+
13+
LLVM_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/llvm-libs-nano-$PKG_TYPE"
14+
FFMPEG_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/ffmpeg-mini-$PKG_TYPE"
15+
QT6_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/qt6-base-iculess-$PKG_TYPE"
16+
LIBXML_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/libxml2-iculess-$PKG_TYPE"
17+
OPUS_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/opus-nano-$PKG_TYPE"
18+
MESA_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/mesa-mini-$PKG_TYPE"
19+
20+
echo "Installing build dependencies..."
21+
echo "---------------------------------------------------------------"
22+
pacman -Syu --noconfirm \
23+
aom \
24+
base-devel \
25+
boost \
26+
boost-libs \
27+
catch2 \
28+
clang \
29+
cmake \
30+
curl \
31+
dav1d \
32+
desktop-file-utils \
33+
doxygen \
34+
enet \
35+
ffmpeg \
36+
ffmpeg4.4 \
37+
fmt \
38+
gamemode \
39+
git \
40+
glslang \
41+
glu \
42+
graphviz \
43+
hidapi \
44+
libass \
45+
libdecor \
46+
libfdk-aac \
47+
libinih \
48+
libopusenc \
49+
libva \
50+
libvpx \
51+
libxi \
52+
libxkbcommon-x11 \
53+
libxss \
54+
libzip \
55+
lld \
56+
mbedtls \
57+
mbedtls2 \
58+
mesa \
59+
meson \
60+
nasm \
61+
ninja \
62+
nlohmann-json \
63+
numactl \
64+
patchelf \
65+
pipewire-audio \
66+
pulseaudio \
67+
pulseaudio-alsa \
68+
python-pip \
69+
qt6-base \
70+
qt6ct \
71+
qt6-multimedia \
72+
qt6-tools \
73+
qt6-wayland \
74+
rapidjson \
75+
sdl2 \
76+
spirv-headers \
77+
strace \
78+
unzip \
79+
vulkan-headers \
80+
vulkan-mesa-layers \
81+
vulkan-nouveau \
82+
vulkan-radeon \
83+
wget \
84+
x264 \
85+
x265 \
86+
xcb-util-image \
87+
xcb-util-renderutil \
88+
xcb-util-wm \
89+
xorg-server-xvfb \
90+
zip \
91+
zsync
92+
93+
if [ "$(uname -m)" = 'x86_64' ]; then
94+
pacman -Syu --noconfirm vulkan-intel haskell-gnutls gcc13 svt-av1
95+
else
96+
pacman -Syu --noconfirm vulkan-freedreno vulkan-panfrost
97+
fi
98+
99+
100+
echo "Installing debloated pckages..."
101+
echo "---------------------------------------------------------------"
102+
wget --retry-connrefused --tries=30 "$LLVM_URL" -O ./llvm-libs.pkg.tar.zst
103+
wget --retry-connrefused --tries=30 "$QT6_URL" -O ./qt6-base-iculess.pkg.tar.zst
104+
wget --retry-connrefused --tries=30 "$LIBXML_URL" -O ./libxml2-iculess.pkg.tar.zst
105+
wget --retry-connrefused --tries=30 "$FFMPEG_URL" -O ./ffmpeg-mini.pkg.tar.zst
106+
wget --retry-connrefused --tries=30 "$OPUS_URL" -O ./opus-nano.pkg.tar.zst
107+
108+
pacman -U --noconfirm ./*.pkg.tar.zst
109+
rm -f ./*.pkg.tar.zst
110+
111+
echo "All done!"
112+
echo "---------------------------------------------------------------"

0 commit comments

Comments
 (0)