From 57a0b56d0127208ec5d7e022e4bcb78edfce0bea Mon Sep 17 00:00:00 2001 From: adas20 Date: Wed, 6 Aug 2025 16:37:32 -0400 Subject: [PATCH] Added build steps for gamemode within jammy linux builds --- jammy-aarch64/Dockerfile | 19 ++++++++++++++++++- jammy/Dockerfile | 18 +++++++++++++++++- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/jammy-aarch64/Dockerfile b/jammy-aarch64/Dockerfile index ad55f79..92a8dce 100644 --- a/jammy-aarch64/Dockerfile +++ b/jammy-aarch64/Dockerfile @@ -78,7 +78,7 @@ RUN \ libx11-* \ libxcb-* \ libxkb* \ - libpng-dev libjpeg-turbo8-dev libtiff-dev libwebp-dev libgtest-dev && \ + libpng-dev libjpeg-turbo8-dev libtiff-dev libwebp-dev libgtest-dev python3 python3-venv python3-pip && \ apt-get clean autoclean && \ apt-get autoremove --yes && \ rm -rf /var/lib/apt @@ -259,3 +259,20 @@ RUN \ cd ../.. && \ rm ./*.tar.gz && \ rm -r ./opencv* + + +# Gamemode package is outdated in jammy repo, we need to build own +# Gamemode uses Meson, not CMake for building +# Based on build instructions for Ubuntu 22 on repo page +ENV GAMEMODE_VER=1.8.2 +RUN \ + python3 -m venv .venv && \ + source .venv/bin/activate && \ + pip install meson && \ + git clone https://github.com/FeralInteractive/gamemode.git && \ + cd gamemode* && \ + git checkout ${GAMEMODE_VER} && \ + ./bootstrap.sh && \ + deactivate && \ + rm -rf .venv && \ + rm -r ./gamemode* diff --git a/jammy/Dockerfile b/jammy/Dockerfile index b1ca4ee..c13a4c6 100644 --- a/jammy/Dockerfile +++ b/jammy/Dockerfile @@ -30,7 +30,7 @@ RUN \ libtheora-dev libwebp-dev libopus-dev libvorbis-dev libvpx-dev libx264-dev libxml2-dev ocl-icd-opencl-dev \ libwayland-dev libwayland-cursor0 libxkbcommon-x11-dev libwayland-client0 libwayland-server0 \ libpng-dev libjpeg-turbo8-dev libtiff-dev libwebp-dev \ - desktop-file-utils dput gnupg pbuilder ubuntu-dev-tools apt-file patchelf libgtest-dev && \ + desktop-file-utils dput gnupg pbuilder ubuntu-dev-tools apt-file patchelf libgtest-dev python3 python3-venv python3-pip && \ apt-get install --only-upgrade dpkg && \ apt-get clean autoclean && \ apt-get autoremove --yes && \ @@ -195,3 +195,19 @@ RUN \ cd ../.. && \ rm ./*.tar.gz && \ rm -r ./opencv* + +# Gamemode package is outdated in jammy repo, we need to build own +# Gamemode uses Meson, not CMake for building +# Based on build instructions for Ubuntu 22 on repo page +ENV GAMEMODE_VER=1.8.2 +RUN \ + python3 -m venv .venv && \ + source .venv/bin/activate && \ + pip install meson && \ + git clone https://github.com/FeralInteractive/gamemode.git && \ + cd gamemode* && \ + git checkout ${GAMEMODE_VER} && \ + ./bootstrap.sh && \ + deactivate && \ + rm -rf .venv && \ + rm -r ./gamemode*