Skip to content

Commit a2e181a

Browse files
authored
Update get-dependencies.sh
1 parent a5441be commit a2e181a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

get-dependencies.sh

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

3+
set -ex
4+
ARCH="$(uname -m)"
5+
6+
echo "Installing build dependencies..."
7+
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+
317
pacman -Syu --noconfirm \
418
base-devel \
519
bison \
@@ -25,3 +39,14 @@ pacman -Syu --noconfirm \
2539
xcb-util-wm \
2640
xcb-util-xrm \
2741
xkeyboard-config
42+
43+
44+
echo "Installing debloated pckages..."
45+
echo "---------------------------------------------------------------"
46+
wget --retry-connrefused --tries=30 "$LIBXML_URL" -O ./libxml2-iculess.pkg.tar.zst
47+
48+
pacman -U --noconfirm ./*.pkg.tar.zst
49+
rm -f ./*.pkg.tar.zst
50+
51+
echo "All done!"
52+
echo "---------------------------------------------------------------"

0 commit comments

Comments
 (0)