[arch-commits] Commit in gamemode/repos (3 files)
Felix Yan
felixonmars at gemini.archlinux.org
Sun Mar 6 15:39:23 UTC 2022
Date: Sunday, March 6, 2022 @ 15:39:23
Author: felixonmars
Revision: 1142451
archrelease: copy trunk to community-staging-x86_64
Added:
gamemode/repos/community-staging-x86_64/
gamemode/repos/community-staging-x86_64/PKGBUILD
(from rev 1142449, gamemode/trunk/PKGBUILD)
gamemode/repos/community-staging-x86_64/gamemode.install
(from rev 1142449, gamemode/trunk/gamemode.install)
------------------+
PKGBUILD | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++
gamemode.install | 21 +++++++++++++++++++
2 files changed, 77 insertions(+)
Copied: gamemode/repos/community-staging-x86_64/PKGBUILD (from rev 1142449, gamemode/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-03-06 15:39:23 UTC (rev 1142451)
@@ -0,0 +1,56 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Ysblokje <ysblokje at gmail.com>
+# Contributor: Mark Wagie <mark.wagie at tutanota.com>
+
+pkgname=gamemode
+pkgver=1.6.1
+pkgrel=2
+pkgdesc='A daemon/lib combo that allows games to request a set of optimisations be temporarily applied to the host OS'
+arch=(x86_64)
+url=https://github.com/FeralInteractive/gamemode
+license=(BSD)
+depends=(
+ glibc
+ libdbus-1.so
+ libinih
+ libsystemd.so
+ polkit
+)
+makedepends=(
+ git
+ meson
+)
+checkdepends=(appstream)
+provides=(
+ libgamemode.so
+ libgamemodeauto.so
+)
+_tag=b11d2912e280acb87d9ad114d6c7cd8846c4ef02
+source=(git+https://github.com/FeralInteractive/gamemode.git#tag=${_tag})
+b2sums=(SKIP)
+
+pkgver() {
+ cd gamemode
+
+ git describe --tags
+}
+
+build() {
+ arch-meson gamemode build \
+ --libexecdir /usr/lib/gamemode \
+ -Dwith-examples=false \
+ -Dwith-pam-group=gamemode \
+ -Dwith-systemd-user-unit-dir=/usr/lib/systemd/user
+ meson compile -C build
+}
+
+check() {
+ meson test -C build
+}
+
+package() {
+ DESTDIR="${pkgdir}" meson install -C build
+ install -Dm 644 gamemode/LICENSE.txt -t "${pkgdir}"/usr/share/licenses/gamemode/
+}
+
+# vim: set ts=4 sw=4 tw=0 et :
Copied: gamemode/repos/community-staging-x86_64/gamemode.install (from rev 1142449, gamemode/trunk/gamemode.install)
===================================================================
--- community-staging-x86_64/gamemode.install (rev 0)
+++ community-staging-x86_64/gamemode.install 2022-03-06 15:39:23 UTC (rev 1142451)
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+pre_install() {
+ if [ ! -f "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" ]; then
+ echo "WARNING: CPUFreq scaling governor device file was not found at \"/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor\"."
+ echo "This probably means that you have disabled processor scheduling features in your BIOS. See README.md (or GitHub issue #44) for more information."
+ echo "This means GameMode's CPU governor control feature will not work (other features will still work)."
+ fi
+}
+
+post_install() {
+ echo 'enable & start the service with:'
+ echo 'systemctl --user enable --now gamemoded'
+}
+
+post_upgrade() {
+ echo 'restart the service with:'
+ echo 'systemctl --user restart gamemoded'
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list