|
1 | 1 | #!/bin/sh |
2 | 2 |
|
3 | 3 | set -ex |
4 | | - |
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-mini-$PKG_TYPE" |
14 | | -FFMPEG_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/ffmpeg-mini-$PKG_TYPE" |
15 | | -QT6_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/qt6-base-iculess-$PKG_TYPE" |
16 | | -LIBXML_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/libxml2-iculess-$PKG_TYPE" |
17 | | -OPUS_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/opus-nano-$PKG_TYPE" |
18 | | -MESA_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/mesa-mini-$PKG_TYPE" |
| 4 | +EXTRA_PACKAGES="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/get-debloated-pkgs.sh" |
19 | 5 |
|
20 | 6 | echo "Installing build dependencies..." |
21 | 7 | echo "---------------------------------------------------------------" |
22 | 8 | pacman -Syu --noconfirm \ |
23 | | - alsa-lib \ |
24 | | - base-devel \ |
25 | | - bluez-libs \ |
26 | | - bzip2 \ |
27 | | - cmake \ |
28 | | - curl \ |
29 | | - enet \ |
30 | | - gcc-libs \ |
31 | | - git \ |
32 | | - glibc \ |
33 | | - hicolor-icon-theme \ |
34 | | - hidapi \ |
35 | | - libusb \ |
36 | | - libx11 \ |
37 | | - libxi \ |
38 | | - libxrandr \ |
39 | | - lz4 \ |
40 | | - lzo \ |
41 | | - mesa \ |
42 | | - patchelf \ |
43 | | - pipewire-audio \ |
44 | | - pulseaudio \ |
45 | | - pulseaudio-alsa \ |
46 | | - qt6ct \ |
47 | | - sdl2 \ |
48 | | - speexdsp \ |
49 | | - strace \ |
50 | | - vulkan-headers \ |
51 | | - vulkan-nouveau \ |
52 | | - vulkan-radeon \ |
53 | | - wget \ |
54 | | - xcb-util-cursor \ |
| 9 | + base-devel \ |
| 10 | + bluez-libs \ |
| 11 | + bzip2 \ |
| 12 | + cmake \ |
| 13 | + curl \ |
| 14 | + enet \ |
| 15 | + git \ |
| 16 | + hidapi \ |
| 17 | + libusb \ |
| 18 | + libx11 \ |
| 19 | + libxi \ |
| 20 | + libxrandr \ |
| 21 | + lz4 \ |
| 22 | + lzo \ |
| 23 | + mesa \ |
| 24 | + patchelf \ |
| 25 | + pipewire-audio \ |
| 26 | + pulseaudio \ |
| 27 | + pulseaudio-alsa \ |
| 28 | + qt6ct \ |
| 29 | + sdl2 \ |
| 30 | + speexdsp \ |
| 31 | + strace \ |
| 32 | + vulkan-headers \ |
| 33 | + vulkan-nouveau \ |
| 34 | + vulkan-radeon \ |
| 35 | + wget \ |
| 36 | + xcb-util-cursor \ |
55 | 37 | xorg-server-xvfb \ |
56 | | - xxhash \ |
57 | | - xz \ |
58 | | - zstd \ |
| 38 | + xxhash \ |
| 39 | + xz \ |
| 40 | + zstd \ |
59 | 41 | zsync |
60 | 42 |
|
61 | | -if [ "$(uname -m)" = 'x86_64' ]; then |
62 | | - pacman -Syu --noconfirm vulkan-intel haskell-gnutls gcc14 svt-av1 |
63 | | -else |
64 | | - pacman -Syu --noconfirm vulkan-freedreno vulkan-panfrost vulkan-broadcom |
65 | | -fi |
66 | | - |
67 | | -echo "Installing debloated pckages..." |
68 | | -echo "---------------------------------------------------------------" |
69 | | -wget --retry-connrefused --tries=30 "$LLVM_URL" -O ./llvm-libs.pkg.tar.zst |
70 | | -wget --retry-connrefused --tries=30 "$QT6_URL" -O ./qt6-base-iculess.pkg.tar.zst |
71 | | -wget --retry-connrefused --tries=30 "$LIBXML_URL" -O ./libxml2-iculess.pkg.tar.zst |
72 | | -wget --retry-connrefused --tries=30 "$FFMPEG_URL" -O ./ffmpeg-mini.pkg.tar.zst |
73 | | -wget --retry-connrefused --tries=30 "$OPUS_URL" -O ./opus-nano.pkg.tar.zst |
74 | | - |
75 | | -pacman -U --noconfirm ./*.pkg.tar.zst |
76 | | -rm -f ./*.pkg.tar.zst |
77 | | - |
78 | | -echo "All done!" |
| 43 | +echo "Installing debloated packages..." |
79 | 44 | echo "---------------------------------------------------------------" |
| 45 | +wget --retry-connrefused --tries=30 "$EXTRA_PACKAGES" -O ./get-debloated-pkgs.sh |
| 46 | +chmod +x ./get-debloated-pkgs.sh |
| 47 | +./get-debloated-pkgs.sh --add-common |
0 commit comments