Skip to content

Commit e150603

Browse files
authored
simplify deps install
1 parent 2affa06 commit e150603

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

get-dependencies.sh

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,7 @@
22

33
set -eux
44

5-
ARCH="$(uname -m)"
6-
7-
case "$ARCH" in
8-
'x86_64') PKG_TYPE='x86_64.pkg.tar.zst';;
9-
'aarch64') PKG_TYPE='aarch64.pkg.tar.xz';;
10-
''|*) echo "Unknown arch: $ARCH"; exit 1;;
11-
esac
12-
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"
5+
EXTRA_PACKAGES="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/get-debloated-pkgs.sh"
156

167
echo "Installing build dependencies..."
178
echo "---------------------------------------------------------------"
@@ -36,17 +27,11 @@ pacman -Syu --noconfirm \
3627
xorg-server-xvfb \
3728
zsync
3829

39-
40-
echo "Installing debloated pckages..."
30+
echo "Installing debloated packages..."
4131
echo "---------------------------------------------------------------"
42-
wget --retry-connrefused --tries=30 "$LIBXML_URL" -O ./libxml2.pkg.tar.zst
43-
wget --retry-connrefused --tries=30 "$OPUS_URL" -O ./opus.pkg.tar.zst
44-
45-
pacman -U --noconfirm ./*.pkg.tar.zst
46-
rm -f ./*.pkg.tar.zst
47-
48-
# This app will dlopen mesa, even though it is not needed at all since it is a qt app
49-
pacman -Rdd --noconfirm mesa
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-common --prefer-nano
5035

5136
echo "All done!"
5237
echo "---------------------------------------------------------------"

0 commit comments

Comments
 (0)