Skip to content

Commit b753ae1

Browse files
authored
simplify deps install
1 parent 8eb021a commit b753ae1

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

get-dependencies.sh

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
#!/bin/sh
22

33
set -ex
4-
ARCH="$(uname -m)"
4+
EXTRA_PACKAGES="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/get-debloated-pkgs.sh"
55

66
echo "Installing build dependencies..."
77
echo "---------------------------------------------------------------"
8-
9-
case "$ARCH" in
10-
'x86_64') PKG_TYPE='x86_64.pkg.tar.zst';;
11-
'aarch64') PKG_TYPE='aarch64.pkg.tar.xz';;
12-
''|*) echo "Unknown arch: $ARCH"; exit 1;;
13-
esac
14-
15-
LIBXML_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/libxml2-iculess-$PKG_TYPE"
16-
178
pacman -Syu --noconfirm \
189
base-devel \
1910
bison \
@@ -41,13 +32,8 @@ pacman -Syu --noconfirm \
4132
xkeyboard-config \
4233
zsync
4334

44-
45-
echo "Installing debloated pckages..."
46-
echo "---------------------------------------------------------------"
47-
wget --retry-connrefused --tries=30 "$LIBXML_URL" -O ./libxml2-iculess.pkg.tar.zst
48-
49-
pacman -U --noconfirm ./*.pkg.tar.zst
50-
rm -f ./*.pkg.tar.zst
51-
52-
echo "All done!"
35+
echo "Installing debloated packages..."
5336
echo "---------------------------------------------------------------"
37+
wget --retry-connrefused --tries=30 "$EXTRA_PACKAGES" -O ./get-debloated-pkgs.sh
38+
chmod +x ./get-debloated-pkgs.sh
39+
./get-debloated-pkgs.sh libxml2-mini gtk3-mini

0 commit comments

Comments
 (0)