Date: Saturday, September 26, 2020 @ 18:11:58 Author: alucryd Revision: 712498
add lib32-gamemode Added: lib32-gamemode/ lib32-gamemode/trunk/ lib32-gamemode/trunk/PKGBUILD ----------+ PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) Added: lib32-gamemode/trunk/PKGBUILD =================================================================== --- lib32-gamemode/trunk/PKGBUILD (rev 0) +++ lib32-gamemode/trunk/PKGBUILD 2020-09-26 18:11:58 UTC (rev 712498) @@ -0,0 +1,61 @@ +# Maintainer: Maxime Gauduin <[email protected]> +# Contributor: Ysblokje <[email protected]> +# Contributor: Mark Wagie <[email protected]> + +pkgname=lib32-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=( + lib32-dbus + lib32-glibc + lib32-systemd +) +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() { + export CC='gcc -m32' + export PKG_CONFIG_PATH=/usr/lib32/pkgconfig + + arch-meson gamemode build \ + --libdir /usr/lib32 \ + -Dwith-examples=false \ + -Dwith-pam-group=gamemode \ + -Dwith-sd-bus-provider=no-daemon \ + -Dwith-systemd-user-unit-dir=/usr/lib/systemd/user \ + -Dwith-util=false + meson compile -C build +} + +check() { + meson test -C build +} + +package() { + DESTDIR="${pkgdir}" meson install -C build + rm -rf "${pkgdir}"/usr/include + install -dm 755 "${pkgdir}"/usr/share/licenses + ln -s gamemode "${pkgdir}"/usr/share/licenses/lib32-gamemode +} + +# vim: set ts=4 sw=4 tw=0 et :
