File tree Expand file tree Collapse file tree 1 file changed +5
-20
lines changed Expand file tree Collapse file tree 1 file changed +5
-20
lines changed Original file line number Diff line number Diff line change 22
33set -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
167echo " Installing build dependencies..."
178echo " ---------------------------------------------------------------"
@@ -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..."
4131echo " ---------------------------------------------------------------"
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
5136echo " All done!"
5237echo " ---------------------------------------------------------------"
You can’t perform that action at this time.
0 commit comments