Date: Saturday, September 26, 2020 @ 18:01:58 Author: alucryd Revision: 712494
archrelease: copy trunk to community-x86_64 Added: gamemode/repos/ gamemode/repos/community-x86_64/ gamemode/repos/community-x86_64/PKGBUILD (from rev 712493, gamemode/trunk/PKGBUILD) gamemode/repos/community-x86_64/gamemode.install (from rev 712493, gamemode/trunk/gamemode.install) ------------------+ PKGBUILD | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ gamemode.install | 21 +++++++++++++++++++ 2 files changed, 77 insertions(+) Copied: gamemode/repos/community-x86_64/PKGBUILD (from rev 712493, gamemode/trunk/PKGBUILD) =================================================================== --- repos/community-x86_64/PKGBUILD (rev 0) +++ repos/community-x86_64/PKGBUILD 2020-09-26 18:01:58 UTC (rev 712494) @@ -0,0 +1,56 @@ +# Maintainer: Maxime Gauduin <aluc...@archlinux.org> +# Contributor: Ysblokje <ysblo...@gmail.com> +# Contributor: Mark Wagie <mark.wa...@tutanota.com> + +pkgname=gamemode +pkgver=1.6 +pkgrel=9 +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=5f71f57db105c5d8682d5ab795651245603133ff +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-x86_64/gamemode.install (from rev 712493, gamemode/trunk/gamemode.install) =================================================================== --- repos/community-x86_64/gamemode.install (rev 0) +++ repos/community-x86_64/gamemode.install 2020-09-26 18:01:58 UTC (rev 712494) @@ -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: