Skip to content

Commit cdd4383

Browse files
authored
simplify deps install
1 parent c99e2a5 commit cdd4383

File tree

1 file changed

+9
-29
lines changed

1 file changed

+9
-29
lines changed

get-dependencies.sh

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,16 @@
11
#!/bin/sh
22

33
set -eux
4-
5-
if [ "$(uname -m)" = 'x86_64' ]; then
6-
PKG_TYPE='x86_64.pkg.tar.zst'
7-
else
8-
PKG_TYPE='aarch64.pkg.tar.xz'
9-
fi
10-
11-
LLVM_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/llvm-libs-nano-$PKG_TYPE"
12-
QT6_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/qt6-base-iculess-$PKG_TYPE"
13-
LIBXML_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/libxml2-iculess-$PKG_TYPE"
14-
OPUS_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/opus-nano-$PKG_TYPE"
15-
MESA_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/mesa-mini-$PKG_TYPE"
16-
INTEL_MEDIA_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/intel-media-mini-$PKG_TYPE"
4+
ARCH="$(uname -m)"
5+
EXTRA_PACKAGES="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/get-debloated-pkgs.sh"
176

187
echo "Installing build dependencies..."
198
echo "---------------------------------------------------------------"
209
pacman -Syu --noconfirm \
2110
base-devel \
2211
curl \
23-
desktop-file-utils \
2412
git \
25-
intel-media-driver \
2613
libfdk-aac \
27-
libva-intel-driver \
2814
libxtst \
2915
obs-studio \
3016
pipewire-audio \
@@ -37,18 +23,12 @@ pacman -Syu --noconfirm \
3723
xorg-server-xvfb \
3824
zsync
3925

40-
echo "Installing debloated pckages..."
41-
echo "---------------------------------------------------------------"
42-
wget --retry-connrefused --tries=30 "$LLVM_URL" -O ./llvm-libs.pkg.tar.zst
43-
wget --retry-connrefused --tries=30 "$QT6_URL" -O ./qt6-base.pkg.tar.zst
44-
wget --retry-connrefused --tries=30 "$LIBXML_URL" -O ./libxml2.pkg.tar.zst
45-
wget --retry-connrefused --tries=30 "$OPUS_URL" -O ./opus.pkg.tar.zst
46-
wget --retry-connrefused --tries=30 "$MESA_URL" -O ./mesa.pkg.tar.zst
47-
wget --retry-connrefused --tries=30 "$INTEL_MEDIA_URL" -O ./intel-media.pkg.tar.zst
48-
49-
pacman -U --noconfirm ./*.pkg.tar.zst
50-
rm -f ./*.pkg.tar.zst
51-
26+
if [ "$ARCH" = 'x86_64' ]; then
27+
pacman -Syu --noconfirm libva-intel-driver
28+
fi
5229

53-
echo "All done!"
30+
echo "Installing debloated packages..."
5431
echo "---------------------------------------------------------------"
32+
wget --retry-connrefused --tries=30 "$EXTRA_PACKAGES" -O ./get-debloated-pkgs.sh
33+
chmod +x ./get-debloated-pkgs.sh
34+
./get-debloated-pkgs.sh --add-mesa llvm-libs-nano libxml2-mini qt6-base-mini gtk3-mini opus-mini

0 commit comments

Comments
 (0)