srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/install_deps_ubuntu.sh
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2024-03-25 20:09:00 +0200
committersrdusr <[email protected]>2024-03-25 20:09:00 +0200
commit0ea49730db789f60349d49187fee2896a947646d (patch)
treeff1309a93bfc9f7a0440aff4dfcee088d1009433 /scripts/install_deps_ubuntu.sh
parent1e1dc93c21a0ba994830bc463c3af1d3ac169fbb (diff)
downloadsrdwm-0ea49730db789f60349d49187fee2896a947646d.tar.gz
srdwm-0ea49730db789f60349d49187fee2896a947646d.zip
Initial Commit
Diffstat (limited to 'scripts/install_deps_ubuntu.sh')
-rw-r--r--scripts/install_deps_ubuntu.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/install_deps_ubuntu.sh b/scripts/install_deps_ubuntu.sh
new file mode 100644
index 0000000..4939557
--- /dev/null
+++ b/scripts/install_deps_ubuntu.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+sudo apt-get update
+sudo apt-get install -y \
+ build-essential cmake ninja-build pkg-config git \
+ liblua5.4-dev \
+ libx11-dev libxrandr-dev libxinerama-dev libxfixes-dev libxcursor-dev \
+ libxcb1-dev libxcb-keysyms1-dev libxcb-icccm4-dev libxcb-ewmh-dev libxcb-randr0-dev \
+ libxft-dev \
+ libwayland-dev wayland-protocols \
+ libxkbcommon-dev libseat-dev \
+ libdrm-dev libegl1-mesa-dev libgbm-dev libudev-dev libinput-dev \
+ libpixman-1-dev \
+ libwlroots-dev || true
+
+# Fallback for distros that use wlroots-dev instead of libwlroots-dev
+if ! pkg-config --exists wlroots; then
+ sudo apt-get install -y wlroots-dev || true
+fi
+
+echo "Dependencies installed."