From abab122f5c2f60f33f06797a60f2b3a6c59aa08d Mon Sep 17 00:00:00 2001 From: toluschr Date: Mon, 25 May 2020 19:49:29 +0200 Subject: [PATCH] New package: gamemode-1.6.1 --- common/shlibs | 2 ++ srcpkgs/gamemode/patches/001-fix-musl.patch | 10 ++++++ srcpkgs/gamemode/template | 39 +++++++++++++++++++++ srcpkgs/libgamemode | 1 + srcpkgs/libgamemode-devel | 1 + 5 files changed, 53 insertions(+) create mode 100644 srcpkgs/gamemode/patches/001-fix-musl.patch create mode 100644 srcpkgs/gamemode/template create mode 120000 srcpkgs/libgamemode create mode 120000 srcpkgs/libgamemode-devel diff --git a/common/shlibs b/common/shlibs index 848b488bb2d0..fbb1d7f48a6a 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3597,6 +3597,8 @@ libgnuradio-nrsc5-1.0.0git.so.0.0.0 gnuradio-nrsc5-1.0.0_1 libvkd3d-utils.so.1 vkd3d-1.1_1 libvkd3d-shader.so.1 vkd3d-1.3_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 diff --git a/srcpkgs/gamemode/patches/001-fix-musl.patch b/srcpkgs/gamemode/patches/001-fix-musl.patch new file mode 100644 index 000000000000..c54c0bad41fe --- /dev/null +++ b/srcpkgs/gamemode/patches/001-fix-musl.patch @@ -0,0 +1,10 @@ +--- a/daemon/gamemode-context.c ++++ b/daemon/gamemode-context.c +@@ -50,6 +50,7 @@ POSSIBILITY OF SUCH DAMAGE. + #include + #include /* TODO: Move usage to gamemode-dbus.c */ + #include ++#include + + /** + * The GameModeClient encapsulates the remote connection, providing a list diff --git a/srcpkgs/gamemode/template b/srcpkgs/gamemode/template new file mode 100644 index 000000000000..0bf9bea530ec --- /dev/null +++ b/srcpkgs/gamemode/template @@ -0,0 +1,39 @@ +# Template file for 'gamemode' +pkgname=gamemode +version=1.6.1 +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="Kenneth Dodrill " +license="BSD-3-Clause" +homepage="https://github.com/FeralInteractive/gamemode" +distfiles="https://github.com/FeralInteractive/gamemode/archive/${version}.tar.gz" +checksum=4377b88b5147ebf8d3f9a7a1f94c6d00f1e9624cd171d5af942ce9766be3747f + +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 + } +} diff --git a/srcpkgs/libgamemode b/srcpkgs/libgamemode new file mode 120000 index 000000000000..d1810c733eb8 --- /dev/null +++ b/srcpkgs/libgamemode @@ -0,0 +1 @@ +gamemode \ No newline at end of file diff --git a/srcpkgs/libgamemode-devel b/srcpkgs/libgamemode-devel new file mode 120000 index 000000000000..d1810c733eb8 --- /dev/null +++ b/srcpkgs/libgamemode-devel @@ -0,0 +1 @@ +gamemode \ No newline at end of file