From 80896491eb71b71feb4ee26cc5b809dcb9c48396 Mon Sep 17 00:00:00 2001 From: Chloe Brown Date: Fri, 9 Sep 2022 13:03:28 +0100 Subject: linuxconsole-tools: new package. --- yellowsquid/packages/linux.scm | 54 +++++++++++++++++++++- .../patches/linuxconsole-udev-install.patch | 17 +++++++ 2 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 yellowsquid/packages/patches/linuxconsole-udev-install.patch diff --git a/yellowsquid/packages/linux.scm b/yellowsquid/packages/linux.scm index 6ec114e..2291736 100644 --- a/yellowsquid/packages/linux.scm +++ b/yellowsquid/packages/linux.scm @@ -1,6 +1,13 @@ (define-module (yellowsquid packages linux) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages sdl) + #:use-module (guix build-system gnu) + #:use-module (guix download) + #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) - #:use-module (nongnu packages linux)) + #:use-module (guix utils) + #:use-module (nongnu packages linux) + #:use-module (yellowsquid packages)) (define %latest-version "5.19.8") @@ -12,3 +19,48 @@ (source ((@@ (gnu packages linux) %upstream-linux-source) %latest-version (base32 "1kl7fifsa6vsm34xg3kd2svhx18n771hfj67nhwnlalmb9whhqv1"))))) + +(define-public linuxconsole-tools + (package + (name "linuxconsole-tools") + (version "1.8.1") + (source (origin (method url-fetch) + (uri (string-append + "mirror://sourceforge/linuxconsole/linuxconsoletools-" + version ".tar.bz2")) + (patches + (search-patches "linuxconsole-udev-install.patch")) + (sha256 + (base32 + "0mi4bkrwp83gcg3jy7knscfi4qziggkljz7kylcdpdw2qx2rg8jd")))) + (inputs (list sdl2)) + (native-inputs (list pkg-config)) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list (string-append "CC=" ,(cc-for-target)) + "DESTDIR=" + (string-append "PREFIX=" %output)) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'check)))) + (home-page "https://sourceforge.net/projects/linuxconsole") + (synopsis "Utilities to test and configure joysticks and the event input layer.") + (description "Linux Console tools includes utilities to test and configure +joysticks, connect legacy devices to the kernel's input subsystem (providing +support for serial mice, touchscreens etc.), and test the input event layer. + +* evdev-joystick - calibrate joystick devices (including dead zones and fuzz) + +* ffcfstress, ffmvforce, fftest - test force-feedback devices + +* ffset - set force-feedback device parameters + +* jscal - calibrate joystick devices, reconfigure the axes and buttons + +* jscal-store, jscal-restore - store and retrieve joystick device settings as + configured using jscal + +* jstest - test joystick devices") + (license license:gpl2+))) diff --git a/yellowsquid/packages/patches/linuxconsole-udev-install.patch b/yellowsquid/packages/patches/linuxconsole-udev-install.patch new file mode 100644 index 0000000..9e0f42b --- /dev/null +++ b/yellowsquid/packages/patches/linuxconsole-udev-install.patch @@ -0,0 +1,17 @@ +diff --git a/utils/Makefile b/utils/Makefile +index 11509d45..c32ff10d 100644 +--- a/utils/Makefile ++++ b/utils/Makefile +@@ -108,9 +108,9 @@ install: $(INSTALL_DEP) + ifndef DISABLE_JOYSTICK + install -d $(DESTDIR)$(PREFIX)/share/joystick + install extract filter ident $(DESTDIR)$(PREFIX)/share/joystick +- install -d $(DESTDIR)/lib/udev/rules.d +- install js-set-enum-leds $(DESTDIR)/lib/udev +- install -m 644 80-stelladaptor-joystick.rules $(DESTDIR)/lib/udev/rules.d ++ install -d $(DESTDIR)$(PREFIX)/lib/udev/rules.d ++ install js-set-enum-leds $(DESTDIR)$(PREFIX)/lib/udev ++ install -m 644 80-stelladaptor-joystick.rules $(DESTDIR)$(PREFIX)/lib/udev/rules.d + endif + + .PHONY: compile clean distclean install -- cgit v1.2.3