Skip to content

Commit 4576928

Browse files
authored
make dedicated script for dependencies
1 parent 562b926 commit 4576928

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

get-dependencies.sh

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/bin/sh
2+
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-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"
17+
18+
echo "Installing dependencies..."
19+
echo "---------------------------------------------------------------"
20+
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+
wget \
40+
xorg-server-xvfb \
41+
zsync
42+
43+
echo "Installing debloated pckages..."
44+
echo "---------------------------------------------------------------"
45+
wget --retry-connrefused --tries=30 "$LLVM_URL" -O ./llvm-libs.pkg.tar.zst
46+
wget --retry-connrefused --tries=30 "$LIBXML_URL" -O ./libxml2.pkg.tar.zst
47+
wget --retry-connrefused --tries=30 "$FFMPEG_URL" -O ./ffmpeg.pkg.tar.zst
48+
wget --retry-connrefused --tries=30 "$OPUS_URL" -O ./opus-nano.pkg.tar.zst
49+
50+
pacman -U --noconfirm ./*.pkg.tar.zst
51+
rm -f ./*.pkg.tar.zst
52+
53+
echo "All done!"
54+
echo "---------------------------------------------------------------"

0 commit comments

Comments
 (0)