From c533db26d336ca5cfff2241254b2fdb8008229af Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 22 May 2025 02:03:41 -0700 Subject: [PATCH] fix(inputplumber): Makefile patch, update files (#4967) (#4982) * Add files via upload * Update inputplumber.spec * Rename make-install-don't-build.patch to make-install-dont-build.patch * Update inputplumber.spec * Update make-install-dont-build.patch * fix: Add new files --------- (cherry picked from commit eed3af2b6a46114c50a21296853e1a5c4f592e7d) Signed-off-by: Gilver Co-authored-by: Gilver --- anda/games/inputplumber/inputplumber.spec | 5 ++++- .../inputplumber/make-install-dont-build.patch | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 anda/games/inputplumber/make-install-dont-build.patch diff --git a/anda/games/inputplumber/inputplumber.spec b/anda/games/inputplumber/inputplumber.spec index 9637b2d6bd..3eaa7edaf9 100644 --- a/anda/games/inputplumber/inputplumber.spec +++ b/anda/games/inputplumber/inputplumber.spec @@ -7,8 +7,9 @@ Summary: Open source input router and remapper daemon for Linux License: GPL-3.0-or-later URL: https://github.com/ShadowBlip/InputPlumber Source0: %{url}/archive/refs/tags/v%version.tar.gz +Patch0: make-install-dont-build.patch BuildRequires: libevdev-devel libiio-devel git make cargo libudev-devel llvm-devel clang-devel -BuildRequires: rust-packaging cargo-rpm-macros mold rpm_macro(cargo_prep_online) +BuildRequires: rust-packaging cargo-rpm-macros mold rpm_macro(cargo_prep_online) systemd-rpm-macros Requires: libevdev libiio Recommends: steam gamescope-session linuxconsoletools Packager: madonuko @@ -46,5 +47,7 @@ keyboards) and translate their input to a variety of virtual device formats. %_unitdir/inputplumber.service %_unitdir/inputplumber-suspend.service %_udevhwdbdir/59-inputplumber.hwdb +%_udevhwdbdir/60-inputplumber-autostart.hwdb +%_udevrulesdir/90-inputplumber-autostart.rules %_datadir/dbus-1/system.d/org.shadowblip.InputPlumber.conf %_datadir/inputplumber/ diff --git a/anda/games/inputplumber/make-install-dont-build.patch b/anda/games/inputplumber/make-install-dont-build.patch new file mode 100644 index 0000000000..de7f6053e1 --- /dev/null +++ b/anda/games/inputplumber/make-install-dont-build.patch @@ -0,0 +1,13 @@ +--- a/Makefile 2025-05-21 22:56:09.064696169 -0500 ++++ b/Makefile 2025-05-21 23:14:40.494058939 -0500 +@@ -41,8 +41,8 @@ + @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) + + .PHONY: install +-install: build ## Install inputplumber to the given prefix (default: PREFIX=/usr) +- install -D -m 755 target/$(TARGET_ARCH)/$(BUILD_TYPE)/$(NAME) \ ++install: ++ install -D -m 755 target/$(BUILD_TYPE)/$(NAME) \ + $(PREFIX)/bin/$(NAME) + install -D -m 644 rootfs/usr/share/dbus-1/system.d/$(DBUS_NAME).conf \ + $(PREFIX)/share/dbus-1/system.d/$(DBUS_NAME).conf