mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
move joycond into system, add udev rules patch (#4619)
* move joycond into system, add udev rules patch * add metainfo
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user