|
1 | 1 | #!/bin/sh |
2 | 2 |
|
3 | 3 | set -eux |
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 | +ARCH="$(uname -m)" |
| 5 | +EXTRA_PACKAGES="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/get-debloated-pkgs.sh" |
19 | 6 |
|
20 | 7 | echo "Installing build dependencies..." |
21 | 8 | echo "---------------------------------------------------------------" |
22 | 9 | pacman -Syu --noconfirm \ |
23 | | - aom \ |
24 | | - base-devel \ |
25 | | - boost \ |
26 | | - boost-libs \ |
27 | | - catch2 \ |
28 | | - clang \ |
29 | | - cmake \ |
30 | | - curl \ |
31 | | - dav1d \ |
32 | | - desktop-file-utils \ |
33 | | - doxygen \ |
34 | | - enet \ |
35 | | - ffmpeg \ |
36 | | - ffmpeg4.4 \ |
37 | | - fmt \ |
38 | | - gamemode \ |
39 | | - git \ |
40 | | - glslang \ |
41 | | - glu \ |
42 | | - graphviz \ |
43 | | - hidapi \ |
44 | | - libass \ |
45 | | - libdecor \ |
46 | | - libfdk-aac \ |
47 | | - libinih \ |
48 | | - libopusenc \ |
49 | | - libva \ |
50 | | - libvpx \ |
51 | | - libxi \ |
52 | | - libxkbcommon-x11 \ |
53 | | - libxss \ |
54 | | - libzip \ |
55 | | - lld \ |
56 | | - mbedtls \ |
57 | | - mbedtls2 \ |
58 | | - mesa \ |
59 | | - meson \ |
60 | | - nasm \ |
61 | | - ninja \ |
62 | | - nlohmann-json \ |
63 | | - numactl \ |
64 | | - pipewire-audio \ |
65 | | - pulseaudio \ |
66 | | - pulseaudio-alsa \ |
67 | | - python-pip \ |
68 | | - qt6-base \ |
69 | | - qt6ct \ |
70 | | - qt6-multimedia \ |
71 | | - qt6-tools \ |
72 | | - qt6-wayland \ |
73 | | - rapidjson \ |
74 | | - sdl2 \ |
75 | | - spirv-headers \ |
76 | | - unzip \ |
77 | | - vulkan-headers \ |
78 | | - vulkan-mesa-layers \ |
79 | | - vulkan-nouveau \ |
80 | | - vulkan-radeon \ |
81 | | - wget \ |
82 | | - x264 \ |
83 | | - x265 \ |
84 | | - xcb-util-cursor \ |
85 | | - xcb-util-image \ |
86 | | - xcb-util-renderutil \ |
87 | | - xcb-util-wm \ |
88 | | - xorg-server-xvfb \ |
89 | | - zip \ |
| 10 | + base-devel \ |
| 11 | + boost \ |
| 12 | + boost-libs \ |
| 13 | + catch2 \ |
| 14 | + clang \ |
| 15 | + cmake \ |
| 16 | + curl \ |
| 17 | + crypto++ \ |
| 18 | + doxygen \ |
| 19 | + ffmpeg \ |
| 20 | + fmt \ |
| 21 | + gamemode \ |
| 22 | + git \ |
| 23 | + glslang \ |
| 24 | + glu \ |
| 25 | + graphviz \ |
| 26 | + hidapi \ |
| 27 | + libinih \ |
| 28 | + libvpx \ |
| 29 | + libxi \ |
| 30 | + libxkbcommon-x11 \ |
| 31 | + libxss \ |
| 32 | + libzip \ |
| 33 | + lld \ |
| 34 | + mesa \ |
| 35 | + meson \ |
| 36 | + ninja \ |
| 37 | + nlohmann-json \ |
| 38 | + pipewire-audio \ |
| 39 | + pulseaudio \ |
| 40 | + pulseaudio-alsa \ |
| 41 | + qt6-base \ |
| 42 | + qt6ct \ |
| 43 | + qt6-multimedia \ |
| 44 | + qt6-tools \ |
| 45 | + qt6-wayland \ |
| 46 | + rapidjson \ |
| 47 | + sdl2 \ |
| 48 | + spirv-headers \ |
| 49 | + unzip \ |
| 50 | + vulkan-headers \ |
| 51 | + vulkan-mesa-layers \ |
| 52 | + wget \ |
| 53 | + xcb-util-cursor \ |
| 54 | + xcb-util-image \ |
| 55 | + xcb-util-renderutil \ |
| 56 | + xcb-util-wm \ |
| 57 | + xorg-server-xvfb \ |
| 58 | + zip \ |
90 | 59 | zsync |
91 | 60 |
|
92 | | -if [ "$(uname -m)" = 'x86_64' ]; then |
93 | | - pacman -Syu --noconfirm vulkan-intel haskell-gnutls gcc14 svt-av1 |
94 | | -else |
95 | | - pacman -Syu --noconfirm vulkan-freedreno vulkan-panfrost |
96 | | -fi |
97 | | - |
98 | | - |
99 | | -echo "Installing debloated pckages..." |
100 | | -echo "---------------------------------------------------------------" |
101 | | -wget --retry-connrefused --tries=30 "$LLVM_URL" -O ./llvm-libs.pkg.tar.zst |
102 | | -wget --retry-connrefused --tries=30 "$QT6_URL" -O ./qt6-base-iculess.pkg.tar.zst |
103 | | -wget --retry-connrefused --tries=30 "$LIBXML_URL" -O ./libxml2-iculess.pkg.tar.zst |
104 | | -wget --retry-connrefused --tries=30 "$FFMPEG_URL" -O ./ffmpeg-mini.pkg.tar.zst |
105 | | -wget --retry-connrefused --tries=30 "$OPUS_URL" -O ./opus-nano.pkg.tar.zst |
106 | | - |
107 | | -pacman -U --noconfirm ./*.pkg.tar.zst |
108 | | -rm -f ./*.pkg.tar.zst |
109 | 61 |
|
110 | | -echo "All done!" |
| 62 | +echo "Installing debloated packages..." |
111 | 63 | echo "---------------------------------------------------------------" |
| 64 | +wget --retry-connrefused --tries=30 "$EXTRA_PACKAGES" -O ./get-debloated-pkgs.sh |
| 65 | +chmod +x ./get-debloated-pkgs.sh |
| 66 | +./get-debloated-pkgs.sh --add-common |
0 commit comments