aboutsummaryrefslogtreecommitdiffstats
path: root/gamescope
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-05-13 19:52:01 +0200
committerDanilo M. <danix@danix.xyz>2026-05-13 19:52:01 +0200
commiteb3ad0b63fc650fb9335d71db60bfc43a728eee6 (patch)
tree1b22f433a7ee2349380fd86508b0483ba8ed2cd9 /gamescope
parent92965ba0d18f0e128f618d6283737842589b171b (diff)
downloadmy-slackbuilds-eb3ad0b63fc650fb9335d71db60bfc43a728eee6.tar.gz
my-slackbuilds-eb3ad0b63fc650fb9335d71db60bfc43a728eee6.zip
gamescope: add version 3.16.23
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'gamescope')
-rw-r--r--gamescope/README38
-rw-r--r--gamescope/gamescope.SlackBuild111
-rw-r--r--gamescope/gamescope.info10
-rw-r--r--gamescope/slack-desc19
4 files changed, 178 insertions, 0 deletions
diff --git a/gamescope/README b/gamescope/README
new file mode 100644
index 0000000..a55810d
--- /dev/null
+++ b/gamescope/README
@@ -0,0 +1,38 @@
+gamescope is a micro-compositor from Valve that allows running games in
+an isolated Wayland compositor session. It supports nested mode (runs
+inside an existing desktop) and embedded/kiosk mode (SteamOS-style full
+session).
+
+Features include:
+ - Resolution scaling and upscaling (AMD FSR, NIS)
+ - HDR support
+ - Frame limiting and VRR/FreeSync support
+ - Vulkan-based compositing
+ - Screen capture via PipeWire
+
+This build clones the source repository and initializes submodules at
+build time, as the upstream bundled dependencies (wlroots, libliftoff,
+vkroots) must be built from specific pinned commits.
+
+Requirements:
+ - git (to clone and initialize submodules at build time)
+ - meson >= 0.58.0
+ - ninja
+ - Vulkan SDK / vulkan-headers / vulkan-loader
+ - wayland (in Slackware base)
+ - libX11 (in Slackware base)
+ - SDL2 (in Slackware base)
+ - pipewire (in Slackware base)
+ - libei (in Slackware base)
+
+SBo dependencies:
+ - libavif (for AVIF screenshot support)
+
+Optional: OpenVR support is auto-detected if the openvr library is
+present.
+
+Graphics support:
+ - AMD: Mesa 20.3+ (GFX9+); for GFX8 and older set R600_DEBUG=nodcc
+ - Intel: Mesa 21.2+
+ - NVIDIA: proprietary 515.43.04+ with nvidia-drm.modeset=1 kernel
+ parameter
diff --git a/gamescope/gamescope.SlackBuild b/gamescope/gamescope.SlackBuild
new file mode 100644
index 0000000..1ecff8a
--- /dev/null
+++ b/gamescope/gamescope.SlackBuild
@@ -0,0 +1,111 @@
+#!/bin/bash
+
+# Slackware build script for gamescope
+
+# Copyright 2026 danix < danix@danix.xyz >
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=gamescope
+VERSION=${VERSION:-3.16.23}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM
+git clone --depth 1 --branch $VERSION https://github.com/ValveSoftware/gamescope
+cd $PRGNAM
+git submodule update --init --recursive
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p build
+ meson setup build/ \
+ --prefix=/usr \
+ --libdir=lib${LIBDIRSUFFIX} \
+ --buildtype=release \
+ --strip \
+ -Dc_args="$SLKCFLAGS -Wno-error=switch" \
+ -Dcpp_args="$SLKCFLAGS" \
+ -Dpipewire=enabled \
+ -Dsdl2_backend=enabled \
+ -Davif_screenshots=enabled \
+ -Dinput_emulation=enabled
+ ninja -C build/
+ DESTDIR=$PKG meson install -C build/ --skip-subprojects
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ LICENSE README.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/gamescope/gamescope.info b/gamescope/gamescope.info
new file mode 100644
index 0000000..e1cfe8d
--- /dev/null
+++ b/gamescope/gamescope.info
@@ -0,0 +1,10 @@
+PRGNAM="gamescope"
+VERSION="3.16.23"
+HOMEPAGE="https://github.com/ValveSoftware/gamescope"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="libavif"
+MAINTAINER="danix"
+EMAIL="danix@danix.xyz"
diff --git a/gamescope/slack-desc b/gamescope/slack-desc
new file mode 100644
index 0000000..2257d09
--- /dev/null
+++ b/gamescope/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+gamescope: gamescope (micro-compositor and session manager for games)
+gamescope:
+gamescope: gamescope is a micro-compositor from Valve that runs games in an
+gamescope: isolated Wayland session. It supports nested mode (inside a desktop)
+gamescope: and embedded mode (SteamOS-style kiosk session).
+gamescope:
+gamescope: Features: resolution scaling (FSR/NIS), HDR, VRR/FreeSync, frame
+gamescope: limiting, Vulkan compositing, and PipeWire screen capture.
+gamescope:
+gamescope: Homepage: https://github.com/ValveSoftware/gamescope
+gamescope: