commit b36d296dee50c739cef7aa8293ef2939f1a097e6 Author: Jonathan Hakimi Date: Mon Jun 22 21:13:20 2020 -0400 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e71d0d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +pspec_x86_64.xml diff --git a/build b/build new file mode 100755 index 0000000..4f9e3a5 --- /dev/null +++ b/build @@ -0,0 +1,23 @@ +#!/usr/bin/fish + +function buildme + echo Now building $argv + cd $argv + sudo solbuild build package.yml -p unstable-x86_64 + sudo mv *.eopkg /var/lib/solbuild/local + cd .. +end + +cd (dirname (realpath (status -f))) + +if test "$argv" + for i in $argv + buildme $i + end +else + sudo rm /var/lib/solbuild/local/*.eopkg + ./build (ls -d */) +end + +cd /var/lib/solbuild/local/ +sudo eopkg index --skip-signing /var/lib/solbuild/local/ diff --git a/hid-nintendo/package.yml b/hid-nintendo/package.yml new file mode 100644 index 0000000..96371e1 --- /dev/null +++ b/hid-nintendo/package.yml @@ -0,0 +1,26 @@ +name : hid-nintendo +version : 2.0 +release : 1 +homepage : https://github.com/nicman23/dkms-hid-nintendo +source : + - https://github.com/nicman23/dkms-hid-nintendo/archive/2.0.tar.gz : 86792ae53732f70730a282ca56443cd95c3d216f167a95bb07affe689a82b709 +license : GPL-2.0-or-later +summary : A kernel driver for the Nintendo Switch Pro Controllers and the Joy-Cons. +description: | + A kernel driver for the Nintendo Switch Pro Controllers and the Joy-Cons. +builddeps : + - linux-current + - linux-current-headers +patterns : + - current : /lib/modules/*.current +setup : | + pushd .. + cp -a dkms-hid-nintendo-%version% current-build +build : | + pushd current-build + KERNEL_VERSION="%kernel_version_current%" + %make -C /lib/modules/${KERNEL_VERSION}/build M=`pwd`/src +install : | + pushd current-build + KERNEL_VERSION="%kernel_version_current%" + install -D -m 755 src/hid-nintendo.ko $installdir/lib/modules/${KERNEL_VERSION}/kernel/drivers/hid/hid-nintendo.ko diff --git a/joycond/package.yml b/joycond/package.yml new file mode 100644 index 0000000..6b34535 --- /dev/null +++ b/joycond/package.yml @@ -0,0 +1,22 @@ +name : joycond +version : 0.3.0 +release : 1 +source : + - git|https://github.com/DanielOgorchock/joycond.git : master +license : GPL-3.0-or-later +summary : joycond is a linux daemon which uses the evdev devices provided by hid-nintendo + (formerly known as hid-joycon) to implement joycon pairing. +description: | + joycond is a linux daemon which uses the evdev devices provided by hid-nintendo (formerly known as hid-joycon) to implement joycon pairing. +builddeps : + - pkgconfig(libevdev) +setup : | + %cmake +build : | + %make +install : | + %make_install + + # Enable by default, users can disable now with systemctl mask tlp + install -Ddm 00755 $installdir/etc/systemd/system/multi-user.target.wants + ln -sv ../joycond.service $installdir/etc/systemd/system/multi-user.target.wants