From efbeb40e3e189334359272cd014c1c0348307d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9?= Date: Fri, 23 Aug 2024 12:41:32 +0300 Subject: [PATCH] gamemode - 1.8.1 --- gamemode/alr.sh | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 gamemode/alr.sh diff --git a/gamemode/alr.sh b/gamemode/alr.sh new file mode 100644 index 0000000..bc87a49 --- /dev/null +++ b/gamemode/alr.sh @@ -0,0 +1,50 @@ +name='gamemode' +version='1.8.1' +release='1' +desc='A daemon/lib combo that allows games to request a set of optimisations be temporarily applied to the host OS' +homepage='https://github.com/FeralInteractive/gamemode' +maintainer="Евгений Храмов " +architectures=('amd64') +license=('BSD-3-Clause') +provides=('gamemode') +conflicts=('gamemode' 'gamemode-bin' 'gamemode-git') + +deps=( + 'glibc' + 'dbus-libs' + 'inih' + 'systemd-libs' + 'polkit' +) +deps_arch=( + 'glibc' + 'libdbus-1.so' + 'libinih' + 'libsystemd.so' + 'polkit' +) +build_deps=( + 'git' + 'meson' + 'appstream' + 'dbus-devel' + 'inih-devel' +) + +sources=("git+https://github.com/FeralInteractive/gamemode.git#tag=v${version}") +checksums=('SKIP') + +build() { + cd ${srcdir} + meson gamemode build --libexecdir /usr/lib/gamemode -Dwith-examples=false + meson compile -C build +} + +check() { + meson test -C build --print-errorlogs +} + +package() { + meson install -C build --destdir "${pkgdir}" + install-license gamemode/LICENSE.txt ./gamemode/LICENSE +}