-
Notifications
You must be signed in to change notification settings - Fork 3
/
install_deps
executable file
·30 lines (27 loc) · 1.44 KB
/
install_deps
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
#!/bin/sh
if [ -f /etc/os-release ]; then
# freedesktop.org and systemd
. /etc/os-release
OS=$NAME
elif type lsb_release >/dev/null 2>&1; then
# linuxbase.org
OS=$(lsb_release -si)
fi
#
# If your distro is not done please feeel free to contribute or if your
# distro updated to different package names also feel free to contribute :)
#
if [ "$OS" = "Void" ] || [ "$OS" = "VoidLinux" ]; then
xbps-install -S havoc wayland wayland-devel wayland-scanner wayland-protocols eudev-libudev libseat-devel libxkbcommon-devel libinput-devel libdrm-devel
elif [ "$OS" = "Arch Linux" ] || [ "$OS" = "Arch" ]; then
pacman -S wayland-protocols wayland libinput libxkbcommon systemd-libs seatd libdrm
elif [ "$OS" = "Alpine Linux" ]; then
apk add wayland-protocols wayland wayland-dev libseat-dev libseat seatd libinput libinput-dev havoc libxkbcommon-dev libxkbcommon libdrm libdrm-dev eudev-dev
elif [ "$OS" = "Iglunix" ]; then
iglu add wayland-protocols libudev-zero libinput wayland libdrm seatd
echo "At the moment please manually install xkbcommon from iglupkg"
elif [ "$OS" = "Fedora Linux" ] || [ -f /etc/redhat-release ]; then
dnf install wayland-devel libseat-devel libinput-devel libpng-devel libglvnd-devel systemd-devel libxkbcommon-devel libdrm-devel mesa-libgbm-devel
elif [ "$OS" = "FreeBSD" ] || [ -f /bin/freebsd-version ]; then
pkg install mesa-libs libxkbcommon wayland seatd libudev-devd libinput libdrm libglvnd wayland-protocols png
fi