move joycond into system, add udev rules patch (#4619) (#4622)

* move joycond into system, add udev rules patch

* add metainfo

(cherry picked from commit cf3cf7e58e)

Co-authored-by: Pornpipat Popum <cappy@cappuchino.xyz>
This commit is contained in:
Raboneko
2025-05-02 04:23:30 -07:00
committed by GitHub
parent 55b284c9b5
commit ef44d5614f
2 changed files with 3 additions and 4 deletions
@@ -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 <cappy@fyralabs.com>
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