Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: gamemode-1.6 #22291

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions common/shlibs
Expand Up @@ -2385,6 +2385,7 @@ libCEGUISILLYImageCodec.so cegui-0.8.7_1
libct.so.4 freetds-0.95.19_1
libsybdb.so.5 freetds-0.95.19_1
libqqwing.so.2 qqwing-1.3.4_1
libinih.so.0 inih-51_1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
libinih.so.0 inih-51_1

This has been added already

libiniparser.so.1 iniparser-4.1_1
libzita-resampler.so.1 zita-resampler-1.3.0_1
libmlt.so.6 mlt-6.4.1_1
Expand Down Expand Up @@ -3643,6 +3644,8 @@ libgnuradio-rds.so.1 gnuradio-rds-3.8.0_1
libgnuradio-nrsc5-1.0.0git.so.0.0.0 gnuradio-nrsc5-1.0.0_1
libvkd3d-utils.so.1 vkd3d-1.1_1
libvkd3d.so.1 vkd3d-1.1_1
libgamemode.so.0 libgamemode-1.6_1
libgamemodeauto.so.0 libgamemode-1.6_1
libgaminggear.so.0 libgaminggear-0.15.1_1
libgaminggearfx.so.0 libgaminggear-0.15.1_1
libgaminggearwidget.so.0 libgaminggear-0.15.1_1
Expand Down
10 changes: 10 additions & 0 deletions srcpkgs/gamemode/patches/001-fix-musl.patch
@@ -0,0 +1,10 @@
--- daemon/gamemode-context.c
+++ daemon/gamemode-context.c
Comment on lines +1 to +2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--- daemon/gamemode-context.c
+++ daemon/gamemode-context.c
--- a/daemon/gamemode-context.c
+++ b/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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has this patch been upstreamed?

Copy link
Contributor Author

@toluschr toluschr Sep 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, apparently not


/**
* The GameModeClient encapsulates the remote connection, providing a list
39 changes: 39 additions & 0 deletions srcpkgs/gamemode/template
@@ -0,0 +1,39 @@
# 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"
depends="lib${pkgname}>=${version}_${revision}"
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
checksum=2d4e733c834f14d076a5062d1ecb5e32f5178014e0634c1a8e3abab21fa9a496
checksum=fda4abbae12639e0f326b2116d19302f83aad6139996c3823882e7f238e9852b


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

libgamemode_package() {
short_desc+=" - shared libraries"
pkg_install() {
# For compatibility reasons, all shlibs should go in libgamemode
vmove "usr/lib/*.so*"
}
}

libgamemode-devel_package() {
short_desc+=" - development files"
depends="lib${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove usr/include
}
}
1 change: 1 addition & 0 deletions srcpkgs/libgamemode
1 change: 1 addition & 0 deletions srcpkgs/libgamemode-devel