Skip to content

Commit

Permalink
New package: gamemode-1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
toluschr committed Sep 13, 2020
1 parent 42cda5b commit 6b364fc
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ libxenvchan.so.4.14 xen-libs-4.14.0_1
libfsimage.so.1.0 xen-libs-4.10.0_1
libxenstat.so.4.14 xen-libs-4.14.0_1
libfam.so.0 gamin-0.1.10_1
libgamemode.so.0 libgamemode-1.5.1_1
libgamemodeauto.so.0 libgamemode-1.5.1_1
libgamin-1.so.0 gamin-0.1.10_1
libKF5SyntaxHighlighting.so.5 syntax-highlighting-5.29.0_1
libKF5Libkleo.so.5 libkleo-17.12.3_1
Expand Down
10 changes: 10 additions & 0 deletions srcpkgs/gamemode/patches/001-fix-musl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- daemon/gamemode-context.c
+++ daemon/gamemode-context.c
@@ -50,6 +50,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <sys/time.h>
#include <systemd/sd-daemon.h> /* TODO: Move usage to gamemode-dbus.c */
#include <unistd.h>
+#include <signal.h>

/**
* The GameModeClient encapsulates the remote connection, providing a list
37 changes: 37 additions & 0 deletions srcpkgs/gamemode/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Template file for 'gamemode'
pkgname=gamemode
version=1.6
revision=1
build_style=meson
configure_args="-Dwith-sd-bus-provider=elogind"
hostmakedepends="pkg-config"
makedepends="inih-devel dbus-devel elogind-devel"
short_desc="Optimise Linux system performance on demand"
maintainer="toluschr <toluschr@protonmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/FeralInteractive/gamemode"
distfiles="https://github.com/FeralInteractive/gamemode/archive/${version}.tar.gz"
checksum=2d4e733c834f14d076a5062d1ecb5e32f5178014e0634c1a8e3abab21fa9a496

post_install() {
vsconf example/gamemode.ini
vlicense LICENSE.txt
}

libgamemode_package() {
short_desc+=" - shared libraries"
pkg_install() {
vmove "usr/lib/*.so*"
}
}

libgamemode-devel_package() {
short_desc+=" - development files"
depends="lib${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/pkgconfig
# For compatibility reasons, unversioned shlibs should go in main package
vmove "usr/lib/*.a"
vmove usr/include
}
}
1 change: 1 addition & 0 deletions srcpkgs/libgamemode
1 change: 1 addition & 0 deletions srcpkgs/libgamemode-devel

0 comments on commit 6b364fc

Please sign in to comment.