forked from audacious-media-player/audacious-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-dependencies.sh
More file actions
executable file
·63 lines (51 loc) · 2.02 KB
/
Copy pathinstall-dependencies.sh
File metadata and controls
executable file
·63 lines (51 loc) · 2.02 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
#!/usr/bin/env bash
# --- Dependency configuration ---
#
# ubuntu-22.04: Qt 5 + GTK 2
# ubuntu-24.04: Qt 6 + GTK 3
# Windows: Qt 6 + GTK 2
# macOS 15: Qt 5 - GTK
# macOS 26: Qt 6 - GTK
os=$(tr '[:upper:]' '[:lower:]' <<< "$1")
if [ -z "$os" ]; then
echo 'Invalid or missing input parameters'
exit 1
fi
ubuntu_packages='gettext libadplug-dev libasound2-dev libavformat-dev
libbinio-dev libbs2b-dev libcddb2-dev libcdio-cdda-dev
libcue-dev libcurl4-gnutls-dev libfaad-dev libflac-dev
libfluidsynth-dev libgl1-mesa-dev libjack-jackd2-dev
libjson-glib-dev libmms-dev libmodplug-dev libmp3lame-dev
libmpg123-dev libneon27-gnutls-dev libnotify-dev libopenmpt-dev
libopusfile-dev libpipewire-0.3-dev libpulse-dev
libsamplerate0-dev libsdl2-dev libsidplayfp-dev libsndfile1-dev
libsndio-dev libsoxr-dev libvorbis-dev libwavpack-dev libxml2-dev
meson'
ubuntu_qt5_packages='libqt5opengl5-dev libqt5svg5-dev libqt5x11extras5-dev
qtbase5-dev qtmultimedia5-dev'
ubuntu_qt6_packages='qt6-base-dev qt6-multimedia-dev qt6-svg-dev'
macos_packages='adplug faad2 ffmpeg libbs2b libcue libmms libmodplug libnotify
libopenmpt libsamplerate libsoxr meson neon opusfile sdl3 wavpack'
case "$os" in
ubuntu-22.04)
sudo apt-get -qq update && sudo apt-get install $ubuntu_packages $ubuntu_qt5_packages libgtk2.0-dev liblircclient-dev
;;
ubuntu*)
sudo apt-get -qq update && sudo apt-get install $ubuntu_packages $ubuntu_qt6_packages libgtk-3-dev liblirc-dev
;;
macos-15*)
brew update -q && brew install $macos_packages qt@5
;;
macos*)
brew update -q && brew install $macos_packages qt@6
;;
windows*)
# - Nothing to do here -
# Packages are installed with the MSYS2 setup in the action.yml file
# and by making use of 'paccache'.
;;
*)
echo "Unsupported OS: $os"
exit 1
;;
esac