|
1 | 1 | #!/bin/sh
|
2 | 2 |
|
3 | 3 | set -ex
|
4 |
| - |
5 |
| -sed -i 's/DownloadUser/#DownloadUser/g' /etc/pacman.conf |
6 | 4 | ARCH="$(uname -m)"
|
7 | 5 |
|
8 |
| -if [ "$ARCH" = 'x86_64' ]; then |
9 |
| - PKG_TYPE='x86_64.pkg.tar.zst' |
10 |
| -else |
11 |
| - PKG_TYPE='aarch64.pkg.tar.xz' |
12 |
| -fi |
13 |
| - |
14 |
| -LLVM_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/llvm-libs-nano-$PKG_TYPE" |
15 |
| -FFMPEG_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/ffmpeg-mini-$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" |
19 |
| - |
20 |
| -echo "Installing dependencies..." |
21 |
| -echo "---------------------------------------------------------------" |
22 | 6 | pacman -Syu --noconfirm \
|
23 | 7 | alsa-lib \
|
24 | 8 | base-devel \
|
@@ -53,6 +37,26 @@ pacman -Syu --noconfirm \
|
53 | 37 | zlib \
|
54 | 38 | zsync
|
55 | 39 |
|
| 40 | +case "$ARCH" in |
| 41 | + 'x86_64') |
| 42 | + PKG_TYPE='x86_64.pkg.tar.zst' |
| 43 | + pacman -Syu --noconfirm intel-media-driver |
| 44 | + ;; |
| 45 | + 'aarch64') |
| 46 | + PKG_TYPE='aarch64.pkg.tar.xz' |
| 47 | + ;; |
| 48 | + ''|*) |
| 49 | + echo "Unknown cpu arch: $ARCH" |
| 50 | + exit 1 |
| 51 | + ;; |
| 52 | +esac |
| 53 | + |
| 54 | +LLVM_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/llvm-libs-nano-$PKG_TYPE" |
| 55 | +FFMPEG_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/ffmpeg-mini-$PKG_TYPE" |
| 56 | +LIBXML_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/libxml2-iculess-$PKG_TYPE" |
| 57 | +OPUS_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/opus-nano-$PKG_TYPE" |
| 58 | +MESA_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/mesa-mini-$PKG_TYPE" |
| 59 | + |
56 | 60 | echo "Installing debloated pckages..."
|
57 | 61 | echo "---------------------------------------------------------------"
|
58 | 62 | wget --retry-connrefused --tries=30 "$LLVM_URL" -O ./llvm-libs.pkg.tar.zst
|
|
0 commit comments