-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
62 lines (54 loc) · 1.79 KB
/
get-dependencies.sh
File metadata and controls
62 lines (54 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh
set -ex
EXTRA_PACKAGES="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/get-debloated-pkgs.sh"
echo "Installing dependencies..."
echo "---------------------------------------------------------------"
pacman -Syu --noconfirm \
base-devel \
cmake \
ccache \
curl \
gcc-libs \
git \
gtk3 \
libao \
libdecor \
libpulse \
libretro-shaders-slang \
libx11 \
libxrandr \
libxss \
ninja \
openal \
pipewire-audio \
pkgconf \
pulseaudio \
pulseaudio-alsa \
rust \
sdl3 \
wget \
xorg-server-xvfb \
zlib \
zsync
echo "Installing debloated packages..."
echo "---------------------------------------------------------------"
wget --retry-connrefused --tries=30 "$EXTRA_PACKAGES" -O ./get-debloated-pkgs.sh
chmod +x ./get-debloated-pkgs.sh
./get-debloated-pkgs.sh --add-common
# Make librashader
echo "Making extra dependencies..."
echo "---------------------------------------------------------------"
# fix nonsense
sed -i 's|EUID == 0|EUID == 69|g' /usr/bin/makepkg
sed -i 's|-O2|-O3|; s|MAKEFLAGS=.*|MAKEFLAGS="-j$(nproc)"|; s|#MAKEFLAGS|MAKEFLAGS|' /etc/makepkg.conf
cat /etc/makepkg.conf
git clone "https://aur.archlinux.org/librashader.git" ./librashader
( cd ./librashader
export RUSTC_WRAPPER="sccache"
makepkg -fs --noconfirm
sccache --show-stats
ls -la .
pacman --noconfirm -U *.pkg.tar.*
)
echo "All done!"
echo "---------------------------------------------------------------"