Skip to content

Commit 1e918f4

Browse files
authored
simplify deps install
1 parent 4b67bec commit 1e918f4

File tree

1 file changed

+24
-44
lines changed

1 file changed

+24
-44
lines changed

get-dependencies.sh

Lines changed: 24 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,35 @@
11
#!/bin/sh
22

33
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-nano-$PKG_TYPE"
14-
LIBXML_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/libxml2-iculess-$PKG_TYPE"
15-
FFMPEG_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/ffmpeg-mini-$PKG_TYPE"
16-
OPUS_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/opus-nano-$PKG_TYPE"
4+
EXTRA_PACKAGES="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/get-debloated-pkgs.sh"
175

186
echo "Installing dependencies..."
197
echo "---------------------------------------------------------------"
208
pacman -Syu --noconfirm \
21-
aalib \
22-
alsa-lib \
23-
base-devel \
24-
cfitsio \
25-
curl \
26-
desktop-file-utils \
27-
ffmpeg \
28-
ghostscript \
29-
gimp \
30-
git \
31-
gjs \
32-
gtk3 \
33-
gvfs \
34-
libheif \
35-
libmng \
36-
librsvg \
37-
patchelf \
38-
strace \
39-
unzip \
40-
wget \
9+
aalib \
10+
alsa-lib \
11+
base-devel \
12+
cfitsio \
13+
curl \
14+
ffmpeg \
15+
ghostscript \
16+
gimp \
17+
git \
18+
gjs \
19+
gtk3 \
20+
gvfs \
21+
libheif \
22+
libmng \
23+
librsvg \
24+
patchelf \
25+
strace \
26+
unzip \
27+
wget \
4128
xorg-server-xvfb \
4229
zsync
4330

44-
echo "Installing debloated pckages..."
45-
echo "---------------------------------------------------------------"
46-
wget --retry-connrefused --tries=30 "$LLVM_URL" -O ./llvm-libs.pkg.tar.zst
47-
wget --retry-connrefused --tries=30 "$LIBXML_URL" -O ./libxml2.pkg.tar.zst
48-
wget --retry-connrefused --tries=30 "$FFMPEG_URL" -O ./ffmpeg.pkg.tar.zst
49-
wget --retry-connrefused --tries=30 "$OPUS_URL" -O ./opus-nano.pkg.tar.zst
50-
51-
pacman -U --noconfirm ./*.pkg.tar.zst
52-
rm -f ./*.pkg.tar.zst
53-
54-
echo "All done!"
31+
echo "Installing debloated packages..."
5532
echo "---------------------------------------------------------------"
33+
wget --retry-connrefused --tries=30 "$EXTRA_PACKAGES" -O ./get-debloated-pkgs.sh
34+
chmod +x ./get-debloated-pkgs.sh
35+
./get-debloated-pkgs.sh --add-opengl gtk3-mini opus-mini ffmpeg-mini libxml2-mini llvm-nano

0 commit comments

Comments
 (0)