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 <mail@cbaines.net>
This commit is contained in:
Evgeny Pisemsky 2024-08-07 11:55:11 +03:00 committed by Christopher Baines
parent b6cb65b649
commit ff185dc003
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -2,7 +2,7 @@
;;; Copyright © 20182022 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
;;; Copyright © 2021, 2023 Evgeny Pisemsky <mail@pisemsky.site>
;;; Copyright © 2021, 2023, 2024 Evgeny Pisemsky <mail@pisemsky.site>
;;; Copyright © 2021 Léo Le Bouter <lle-bout@zaclys.net>
;;; Copyright © 2021 Denis Carikli <GNUtoo@cyberdimension.org>
;;; Copyright © 2021, 2022 Petr Hodina <phodina@protonmail.com>
@ -1580,7 +1580,7 @@ (define-public lxi-tools
(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 @@ (define-public usbrelay
(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")