diff options
| author | Evgeny Pisemsky <mail@pisemsky.site> | 2024-08-07 11:55:11 +0300 |
|---|---|---|
| committer | Christopher Baines <mail@cbaines.net> | 2024-08-14 10:49:49 +0100 |
| commit | ff185dc00319af1dede83df465288e73dc0e5ff5 (patch) | |
| tree | c629d6bfc88dc7e69f415dea94d127831a8aaefa /gnu/packages/hardware.scm | |
| parent | b6cb65b649b14d9876720804fe9bda358753f0c8 (diff) | |
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>
Diffstat (limited to 'gnu/packages/hardware.scm')
| -rw-r--r-- | gnu/packages/hardware.scm | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 9db7de848e7..d8530f87059 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;;; Copyright © 2018–2022 Tobias Geerinckx-Rice <me@tobias.gr> | 2 | ;;; Copyright © 2018–2022 Tobias Geerinckx-Rice <me@tobias.gr> |
| 3 | ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> | 3 | ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> |
| 4 | ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re> | 4 | ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re> |
| 5 | ;;; Copyright © 2021, 2023 Evgeny Pisemsky <mail@pisemsky.site> | 5 | ;;; Copyright © 2021, 2023, 2024 Evgeny Pisemsky <mail@pisemsky.site> |
| 6 | ;;; Copyright © 2021 Léo Le Bouter <lle-bout@zaclys.net> | 6 | ;;; Copyright © 2021 Léo Le Bouter <lle-bout@zaclys.net> |
| 7 | ;;; Copyright © 2021 Denis Carikli <GNUtoo@cyberdimension.org> | 7 | ;;; Copyright © 2021 Denis Carikli <GNUtoo@cyberdimension.org> |
| 8 | ;;; Copyright © 2021, 2022 Petr Hodina <phodina@protonmail.com> | 8 | ;;; Copyright © 2021, 2022 Petr Hodina <phodina@protonmail.com> |
| @@ -1580,7 +1580,7 @@ modern instrumentation and data acquision systems using Ethernet.") | |||
| 1580 | (define-public usbrelay | 1580 | (define-public usbrelay |
| 1581 | (package | 1581 | (package |
| 1582 | (name "usbrelay") | 1582 | (name "usbrelay") |
| 1583 | (version "1.2") | 1583 | (version "1.2.1") |
| 1584 | (source (origin | 1584 | (source (origin |
| 1585 | (method git-fetch) | 1585 | (method git-fetch) |
| 1586 | (uri (git-reference | 1586 | (uri (git-reference |
| @@ -1589,19 +1589,31 @@ modern instrumentation and data acquision systems using Ethernet.") | |||
| 1589 | (file-name (git-file-name name version)) | 1589 | (file-name (git-file-name name version)) |
| 1590 | (sha256 | 1590 | (sha256 |
| 1591 | (base32 | 1591 | (base32 |
| 1592 | "0fr3wglr2c6myg4k6ai2p5z38prclcnk2ngik15sq16fnp6qg750")))) | 1592 | "1xw2fqx4drmkvv587vkz3aicp6pw1mzxr8bjz8wad9j4c0r24cgn")))) |
| 1593 | (build-system gnu-build-system) | 1593 | (build-system gnu-build-system) |
| 1594 | (arguments | 1594 | (arguments |
| 1595 | (list | 1595 | (list |
| 1596 | #:phases #~(modify-phases %standard-phases | 1596 | #:phases #~(modify-phases %standard-phases |
| 1597 | (delete 'configure)) ;no configure script | 1597 | ;; No configure script. |
| 1598 | (delete 'configure) | ||
| 1599 | (add-after 'install 'install-manpage | ||
| 1600 | (lambda _ | ||
| 1601 | (install-file "usbrelay.1" | ||
| 1602 | (string-append #$output "/share/man/man1")))) | ||
| 1603 | (add-after 'install-manpage 'install-udev-rules | ||
| 1604 | (lambda _ | ||
| 1605 | (install-file "50-usbrelay.rules" | ||
| 1606 | (string-append #$output "/lib/udev/rules.d"))))) | ||
| 1598 | #:make-flags #~(list (string-append "CC=" #$(cc-for-target)) | 1607 | #:make-flags #~(list (string-append "CC=" #$(cc-for-target)) |
| 1599 | (string-append "PREFIX=" #$output) | 1608 | (string-append "PREFIX=" #$output) |
| 1600 | (string-append "LDFLAGS=-Wl,-rpath=" | 1609 | (string-append "LDFLAGS=-Wl,-rpath=" |
| 1601 | (string-append #$output "/lib")) | 1610 | (string-append #$output "/lib")) |
| 1602 | "LDCONFIG=true" | 1611 | "LDCONFIG=true" |
| 1603 | "USBMAJOR=$(USBLIBVER)") | 1612 | (string-append "USBMAJOR=" #$version) |
| 1604 | #:tests? #f)) ;no test suite | 1613 | (string-append "USBLIBVER=" #$version) |
| 1614 | (string-append "VERSION=" #$version)) | ||
| 1615 | ;; No test suite. | ||
| 1616 | #:tests? #f)) | ||
| 1605 | (inputs (list hidapi)) | 1617 | (inputs (list hidapi)) |
| 1606 | (home-page "https://github.com/darrylb123/usbrelay") | 1618 | (home-page "https://github.com/darrylb123/usbrelay") |
| 1607 | (synopsis "Control USB relay modules") | 1619 | (synopsis "Control USB relay modules") |
