summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rwxr-xr-xinstall33
1 files changed, 33 insertions, 0 deletions
diff --git a/install b/install
new file mode 100755
index 0000000..f04c3fa
--- /dev/null
+++ b/install
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+# install script for gpu-screen-recorder for debian-like systems
+# put in gpu-screen-recorder repo and run
+
+echo "just getting dependencies..."
+#sudo apt install build-essential cmake pkgconf wayland-protocols libwayland-dev libx11-dev libxcomposite-dev libxrandr-dev \
+#libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libavfilter-dev libva-dev libdrm-dev libpulse-dev libcap-dev \
+#libvulkan-dev libxdamage-dev libpipewire-0.3-dev libdbus-1-dev \
+#libglvnd0 libgl1 libegl1 libgles2 libturbojpeg0 libnvidia-fbc1 libxnvctrl0 libcuda1 libnvidia-encode1
+sudo xbps-install -S \
+base-devel cmake meson pkgconf git \
+wayland-devel wayland-protocols \
+libX11-devel libXcomposite-devel libXrandr-devel \
+libXdamage-devel libXfixes-devel \
+# ffmpeg6-devel is required for av1 encode
+ffmpeg6-devel libva-devel libdrm-devel \
+pulseaudio-devel libcap-devel \
+Vulkan-Headers vulkan-loader-devel \
+pipewire-devel dbus-devel \
+MesaLib-devel libglvnd-devel \
+libjpeg-turbo-devel
+
+echo "building.."
+rm -rf build
+meson setup build
+#meson configure --prefix=/usr --buildtype=release -Dsystemd=true -Dstrip=true build
+meson configure --prefix=/usr --buildtype=release -Dstrip=true build
+
+echo "installing..."
+ninja -C build install
+
+echo "done"