Skip to content

Commit

Permalink
add: joycond
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko committed Oct 21, 2024
1 parent b5371d7 commit ed3986e
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/games/joycond/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "joycond.spec"
}
}
45 changes: 45 additions & 0 deletions anda/games/joycond/joycond.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
Name: joycond
Version: 0.1.0
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]>
BuildRequires: libevdev-devel libudev-devel
BuildRequires: cmake make systemd-rpm-macros gcc-c++

%description
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

%build
%cmake .
%cmake_build

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

mkdir -p %buildroot%_unitdir
mv %buildroot%_sysconfdir/systemd/system/joycond.service %buildroot%_unitdir/joycond.service

%post
%systemd_post joycond.service

%preun
%systemd_preun joycond.service

%postun
%systemd_postun_with_restart joycond.service

%files
%_bindir/joycond
%_udevrulesdir/72-joycond.rules
%_udevrulesdir/89-joycond.rules
%_unitdir/joycond.service
%_sysconfdir/modules-load.d/joycond.conf
1 change: 1 addition & 0 deletions anda/games/joycond/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("DanielOgorchock/joycond"));

0 comments on commit ed3986e

Please sign in to comment.