cbaines pushed a commit to branch master
in repository guix.
commit ff185dc00319af1dede83df465288e73dc0e5ff5
Author: Evgeny Pisemsky <[email protected]>
AuthorDate: Wed Aug 7 11:55:11 2024 +0300
gnu: usbrelay: Update to 1.2.1.
* gnu/packages/hardware.scm (usbrelay): Update to 1.2.1.
[arguments]: Install manpage and udev rules, specify actual version.
Change-Id: I5b889889c528d5526c8cfcc66d56b2b9d8d60437
Signed-off-by: Christopher Baines <[email protected]>
---
gnu/packages/hardware.scm | 24 ++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index 9db7de848e..d8530f8705 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2018–2022 Tobias Geerinckx-Rice <[email protected]>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <[email protected]>
;;; Copyright © 2020 Brice Waegeneire <[email protected]>
-;;; Copyright © 2021, 2023 Evgeny Pisemsky <[email protected]>
+;;; Copyright © 2021, 2023, 2024 Evgeny Pisemsky <[email protected]>
;;; Copyright © 2021 Léo Le Bouter <[email protected]>
;;; Copyright © 2021 Denis Carikli <[email protected]>
;;; Copyright © 2021, 2022 Petr Hodina <[email protected]>
@@ -1580,7 +1580,7 @@ modern instrumentation and data acquision systems using
Ethernet.")
(define-public usbrelay
(package
(name "usbrelay")
- (version "1.2")
+ (version "1.2.1")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -1589,19 +1589,31 @@ modern instrumentation and data acquision systems using
Ethernet.")
(file-name (git-file-name name version))
(sha256
(base32
- "0fr3wglr2c6myg4k6ai2p5z38prclcnk2ngik15sq16fnp6qg750"))))
+ "1xw2fqx4drmkvv587vkz3aicp6pw1mzxr8bjz8wad9j4c0r24cgn"))))
(build-system gnu-build-system)
(arguments
(list
#:phases #~(modify-phases %standard-phases
- (delete 'configure)) ;no configure script
+ ;; No configure script.
+ (delete 'configure)
+ (add-after 'install 'install-manpage
+ (lambda _
+ (install-file "usbrelay.1"
+ (string-append #$output
"/share/man/man1"))))
+ (add-after 'install-manpage 'install-udev-rules
+ (lambda _
+ (install-file "50-usbrelay.rules"
+ (string-append #$output
"/lib/udev/rules.d")))))
#:make-flags #~(list (string-append "CC=" #$(cc-for-target))
(string-append "PREFIX=" #$output)
(string-append "LDFLAGS=-Wl,-rpath="
(string-append #$output "/lib"))
"LDCONFIG=true"
- "USBMAJOR=$(USBLIBVER)")
- #:tests? #f)) ;no test suite
+ (string-append "USBMAJOR=" #$version)
+ (string-append "USBLIBVER=" #$version)
+ (string-append "VERSION=" #$version))
+ ;; No test suite.
+ #:tests? #f))
(inputs (list hidapi))
(home-page "https://github.com/darrylb123/usbrelay")
(synopsis "Control USB relay modules")