-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
40 lines (32 loc) · 1.15 KB
/
get-dependencies.sh
File metadata and controls
40 lines (32 loc) · 1.15 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
echo "Installing package dependencies..."
echo "---------------------------------------------------------------"
pacman -Syu --noconfirm \
pipewire-audio \
pipewire-jack \
patchelf \
unzip \
sdl12-compat \
sdl_ttf
echo "Installing debloated packages..."
echo "---------------------------------------------------------------"
get-debloated-pkgs --add-common
# Comment this out if you need an AUR package
make-aur-package openssl-1.0
make-aur-package --chaotic-aur libcurl-compat
make-aur-package --chaotic-aur ncurses5-compat-libs
echo "Getting epsxe binary..."
echo "---------------------------------------------------------------"
BINARY=$(wget --retry-connrefused --tries=30 https://www.epsxe.com/download.php -O - \
| sed 's/[()",{} ]/\n/g' | grep -oi "https.*linux.*x64.*zip$" | head -1)
wget --retry-connrefused --tries=30 "$BINARY"
unzip ./*.zip
chmod +x ./epsxe_x64
mv -v ./epsxe_x64 ./epsxe
# this app needs an older version of libcurl to work
patchelf --replace-needed libcurl.so.4 libcurl-compat.so.4.8.0 ./epsxe
ldd ./epsxe
./epsxe -v
./epsxe -v | awk 'END {print $NF}' | sed -e 's|.$||' > ~/version