From cf3cf7e58e616a502d5a834588cf484f42b2da73 Mon Sep 17 00:00:00 2001 From: Pornpipat Popum Date: Fri, 2 May 2025 18:03:28 +0700 Subject: [PATCH] move joycond into system, add udev rules patch (#4619) * move joycond into system, add udev rules patch * add metainfo --- anda/{games => system}/joycond/anda.hcl | 0 anda/{games => system}/joycond/joycond.spec | 7 +++---- 2 files changed, 3 insertions(+), 4 deletions(-) rename anda/{games => system}/joycond/anda.hcl (100%) rename anda/{games => system}/joycond/joycond.spec (84%) diff --git a/anda/games/joycond/anda.hcl b/anda/system/joycond/anda.hcl similarity index 100% rename from anda/games/joycond/anda.hcl rename to anda/system/joycond/anda.hcl diff --git a/anda/games/joycond/joycond.spec b/anda/system/joycond/joycond.spec similarity index 84% rename from anda/games/joycond/joycond.spec rename to anda/system/joycond/joycond.spec index 41bce51cca..2bb0f1a80d 100644 --- a/anda/games/joycond/joycond.spec +++ b/anda/system/joycond/joycond.spec @@ -1,4 +1,4 @@ -%global commit 9d1f5098b716681d087cca695ad714218a18d4e8 +%global commit 39d5728d41b70840342ddc116a59125b337fbde2 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commit_date %(date '+%Y%m%d') Name: joycond @@ -9,6 +9,7 @@ License: GPL-3.0-or-later URL: https://github.com/DanielOgorchock/joycond Source0: %url/archive/%{commit}/%{commit}.tar.gz#/%{name}-%{commit_date}.git~%{shortcommit}.tar.gz Patch0: https://github.com/terrapkg/pkg-joycond/raw/refs/heads/main/0001-Revert-virt_ctrlr_passthrough-send-uevent-change-eve.patch +Patch1: https://github.com/terrapkg/pkg-joycond/raw/refs/heads/main/0001-Change-permissions-for-hidraw-access.patch Packager: Cappy Ishihara BuildRequires: libevdev-devel libudev-devel BuildRequires: cmake make systemd-rpm-macros gcc-c++ @@ -27,9 +28,6 @@ joycond is a linux daemon which uses the evdev devices provided by hid-nintendo %install %cmake_install -mkdir -p %buildroot%_unitdir %buildroot%_prefix -mv %buildroot%_sysconfdir/systemd/system/joycond.service %buildroot%_unitdir/joycond.service -mv %buildroot/lib/udev/ %buildroot%_prefix/lib/ %post %systemd_post joycond.service @@ -46,3 +44,4 @@ mv %buildroot/lib/udev/ %buildroot%_prefix/lib/ %_udevrulesdir/89-joycond.rules %_unitdir/joycond.service %_sysconfdir/modules-load.d/joycond.conf +%_datadir/metainfo/com.github.DanielOgorchock.joycond.metainfo.xml \ No newline at end of file