Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[f41] Switch joycond to git snapshot, pull in some patches (#2296) #2300

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions anda/games/joycond/joycond.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
%global commit 9d1f5098b716681d087cca695ad714218a18d4e8
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date %(date '+%Y%m%d')
Name: joycond
Version: 0.1.0
Version: %{commit_date}.git~%{shortcommit}
Release: 1%?dist
Summary: Userspace daemon to combine joy-cons from the hid-nintendo kernel driver
License: GPL-3.0-or-later
URL: https://github.com/DanielOgorchock/joycond
Source0: %url/archive/refs/tags/v%version.tar.gz
Packager: madonuko <[email protected]>
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
Packager: Cappy Ishihara <[email protected]>
BuildRequires: libevdev-devel libudev-devel
BuildRequires: cmake make systemd-rpm-macros gcc-c++

Expand All @@ -14,16 +18,14 @@ joycond is a linux daemon which uses the evdev devices provided by hid-nintendo
(formerly known as hid-joycon) to implement joycon pairing.

%prep
%autosetup
%autosetup -n %{name}-%{commit} -p1

%build
%cmake .
%cmake_build

%install
cd redhat-linux-build/
cp joycond ..
%make_install
%cmake_install

mkdir -p %buildroot%_unitdir %buildroot%_prefix
mv %buildroot%_sysconfdir/systemd/system/joycond.service %buildroot%_unitdir/joycond.service
Expand Down
1 change: 0 additions & 1 deletion anda/games/joycond/update.rhai

This file was deleted.

Loading