-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
66 lines (59 loc) · 1.56 KB
/
get-dependencies.sh
File metadata and controls
66 lines (59 loc) · 1.56 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
63
64
65
66
#!/bin/sh
set -eu
echo "Installing package dependencies..."
echo "---------------------------------------------------------------"
pacman -Syu --noconfirm \
base-devel \
bluez-libs \
bzip2 \
cmake \
enet \
hidapi \
kvantum \
libusb \
lz4 \
lzo \
lxqt-qtplugin \
mesa \
pipewire-audio \
pipewire-jack \
qt6ct \
qt6-wayland \
sdl3 \
speexdsp \
vulkan-headers \
xcb-util-cursor \
xxhash \
xz
echo "Installing debloated packages..."
echo "---------------------------------------------------------------"
get-debloated-pkgs --add-common ! gtk3
# Comment this out if you need an AUR package
#make-aur-package PACKAGENAME
echo "Building dolphin..."
echo "---------------------------------------------------------------"
git clone https://github.com/dolphin-emu/dolphin.git ./dolphin
cd ./dolphin
# Determine to build nightly or stable
if [ "${DEVEL_RELEASE-}" = 1 ]; then
git rev-parse --short HEAD > ~/version
else
git fetch --tags origin
TAG=$(git tag --sort=-v:refname | grep -vi 'rc\|alpha\|nJoy' | head -1)
git checkout "$TAG"
echo "$TAG" > ~/version
fi
# BUILD DOLPHIN
mkdir ./build
cd ./build
git submodule update --init --recursive
cmake .. \
-DDISTRIBUTOR=pkgforge-dev \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_ANALYTICS=OFF \
-DENABLE_LLVM=OFF \
-DUSE_DISCORD_PRESENCE=OFF \
-DENABLE_AUTOUPDATE=OFF \
-DENCODE_FRAMEDUMPS=OFF
make -j$(nproc)
sudo make install