From 3417293558de0b329e8d4078c305f17c2ed2da89 Mon Sep 17 00:00:00 2001 From: madonuko Date: Mon, 21 Oct 2024 15:38:44 +0800 Subject: [PATCH 1/3] add: inputplumber close #2249 --- anda/games/inputplumber/anda.hcl | 5 +++ anda/games/inputplumber/inputplumber.spec | 46 +++++++++++++++++++++++ anda/games/inputplumber/update.rhai | 1 + 3 files changed, 52 insertions(+) create mode 100644 anda/games/inputplumber/anda.hcl create mode 100644 anda/games/inputplumber/inputplumber.spec create mode 100644 anda/games/inputplumber/update.rhai diff --git a/anda/games/inputplumber/anda.hcl b/anda/games/inputplumber/anda.hcl new file mode 100644 index 0000000000..6fbce4b3fd --- /dev/null +++ b/anda/games/inputplumber/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "inputplumber.spec" + } +} diff --git a/anda/games/inputplumber/inputplumber.spec b/anda/games/inputplumber/inputplumber.spec new file mode 100644 index 0000000000..0837ffcbba --- /dev/null +++ b/anda/games/inputplumber/inputplumber.spec @@ -0,0 +1,46 @@ +Name: inputplumber +Version: 0.36.5 +Release: 1%?dist +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 +BuildRequires: libevdev-devel libiio-devel git make cargo libudev-devel llvm-devel clang-devel +BuildRequires: rust-packaging cargo-rpm-macros mold +Requires: libevdev libiio +Recommends: steam gamescope-session linuxconsoletools +Provides: inputplumber +Conflicts: hhd + +%description +InputPlumber is an open source input routing and control daemon for Linux. It +can be used to combine any number of input devices (like gamepads, mice, and +keyboards) and translate their input to a variety of virtual device formats. + +%prep +%autosetup -n InputPlumber-%version +%cargo_prep_online + +%build +%cargo_build + +%install +%make_install BUILD_TYPE=rpm PREFIX=%buildroot%_prefix + +%post +%systemd_post inputplumber.service + +%preun +%systemd_preun inputplumber.service + +%postun +%systemd_postun_with_restart inputplumber.service + +%files +%doc README.md +%license LICENSE +%_bindir/inputplumber +%_unitdir/inputplumber.service +%_udevhwdbdir/59-inputplumber.hwdb +%_datadir/dbus-1/system.d/org.shadowblip.InputPlumber.conf +%_datadir/inputplumber/ diff --git a/anda/games/inputplumber/update.rhai b/anda/games/inputplumber/update.rhai new file mode 100644 index 0000000000..565e8f7e01 --- /dev/null +++ b/anda/games/inputplumber/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("ShadowBlip/InputPlumber")); From c62fadb4687b4f7d96bececa2557e209f408c6be Mon Sep 17 00:00:00 2001 From: madomado Date: Mon, 21 Oct 2024 15:49:06 +0800 Subject: [PATCH 2/3] forgot funny packager Signed-off-by: madomado --- anda/games/inputplumber/inputplumber.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/anda/games/inputplumber/inputplumber.spec b/anda/games/inputplumber/inputplumber.spec index 0837ffcbba..7326a29ae9 100644 --- a/anda/games/inputplumber/inputplumber.spec +++ b/anda/games/inputplumber/inputplumber.spec @@ -9,6 +9,7 @@ BuildRequires: libevdev-devel libiio-devel git make cargo libudev-devel llvm-de BuildRequires: rust-packaging cargo-rpm-macros mold Requires: libevdev libiio Recommends: steam gamescope-session linuxconsoletools +Packager: madonuko Provides: inputplumber Conflicts: hhd From e82ec5d373eb036dd75d9404e9d3cf74ef5a6c98 Mon Sep 17 00:00:00 2001 From: madomado Date: Mon, 21 Oct 2024 16:18:02 +0800 Subject: [PATCH 3/3] Update inputplumber.spec --- anda/games/inputplumber/inputplumber.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/games/inputplumber/inputplumber.spec b/anda/games/inputplumber/inputplumber.spec index 7326a29ae9..5a8540be57 100644 --- a/anda/games/inputplumber/inputplumber.spec +++ b/anda/games/inputplumber/inputplumber.spec @@ -6,7 +6,7 @@ License: GPL-3.0-or-later URL: https://github.com/ShadowBlip/InputPlumber Source0: %{url}/archive/refs/tags/v%version.tar.gz BuildRequires: libevdev-devel libiio-devel git make cargo libudev-devel llvm-devel clang-devel -BuildRequires: rust-packaging cargo-rpm-macros mold +BuildRequires: rust-packaging cargo-rpm-macros mold rpm_macro(cargo_prep_online) Requires: libevdev libiio Recommends: steam gamescope-session linuxconsoletools Packager: madonuko