Skip to content

Commit bd89ce4

Browse files
authored
simplify deps install
1 parent 2aba8bd commit bd89ce4

File tree

1 file changed

+17
-36
lines changed

1 file changed

+17
-36
lines changed

get-dependencies.sh

Lines changed: 17 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,28 @@
11
#!/bin/sh
22

3-
set -ex
3+
set -eux
44

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-
LIBXML_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/libxml2-iculess-$PKG_TYPE"
15-
OPUS_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/opus-nano-$PKG_TYPE"
5+
EXTRA_PACKAGES="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/get-debloated-pkgs.sh"
166

177
echo "Installing dependencies..."
188
echo "---------------------------------------------------------------"
199
pacman -Syu --noconfirm \
20-
base-devel \
21-
curl \
22-
desktop-file-utils \
23-
desmume \
24-
git \
25-
libdecor \
26-
libxss \
27-
mesa \
28-
patchelf \
29-
pipewire-audio \
30-
pulseaudio \
31-
pulseaudio-alsa \
32-
strace \
33-
wget \
10+
base-devel \
11+
desmume \
12+
git \
13+
libdecor \
14+
libxss \
15+
patchelf \
16+
pipewire-audio \
17+
pulseaudio \
18+
pulseaudio-alsa \
19+
strace \
20+
wget \
3421
xorg-server-xvfb \
3522
zsync
3623

37-
echo "Installing debloated pckages..."
38-
echo "---------------------------------------------------------------"
39-
wget --retry-connrefused --tries=30 "$LLVM_URL" -O ./llvm-libs.pkg.tar.zst
40-
wget --retry-connrefused --tries=30 "$LIBXML_URL" -O ./libxml2.pkg.tar.zst
41-
wget --retry-connrefused --tries=30 "$OPUS_URL" -O ./opus-nano.pkg.tar.zst
42-
43-
pacman -U --noconfirm ./*.pkg.tar.zst
44-
rm -f ./*.pkg.tar.zst
45-
46-
echo "All done!"
24+
echo "Installing debloated packages..."
4725
echo "---------------------------------------------------------------"
26+
wget --retry-connrefused --tries=30 "$EXTRA_PACKAGES" -O ./get-debloated-pkgs.sh
27+
chmod +x ./get-debloated-pkgs.sh
28+
./get-debloated-pkgs.sh --add-opengl gtk3-mini libxml2-mini opus-mini

0 commit comments

Comments
 (0)