me
/
guix
Archived
1
0
Fork 0

gnu: brightnessctl: Update to 0.5.1.

* gnu/packages/linux.scm (brightnessctl): Update to 0.5.1.
[arguments]: Use CC-FOR-TARGET instead of "gcc".
master
Marius Bakke 2020-11-19 23:57:50 +01:00
parent fddae39aca
commit ae52ff1b50
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 29 additions and 32 deletions

View File

@ -6056,43 +6056,40 @@ set the screen to be pitch black at a value of 0 (or higher).
(license license:gpl3+))) (license license:gpl3+)))
(define-public brightnessctl (define-public brightnessctl
(let ((commit "6a791e7694aeeb5d027f71c6098e5182cf03371c")) (package
(package (name "brightnessctl")
(name "brightnessctl") (version "0.5.1")
(version (git-version "0.4" "0" commit)) (home-page "https://github.com/Hummer12007/brightnessctl")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference (url home-page) (commit version)))
(url "https://github.com/Hummer12007/brightnessctl/") (file-name (git-file-name name version))
(commit commit))) (sha256
(file-name (git-file-name name version)) (base32
(sha256 "0immxc7almmpg80n3bdn834p3nrrz7bspl2syhb04s3lawa5y2lq"))))
(base32 (build-system gnu-build-system)
"1n1gb8ldgqv3vs565yhk1w4jfvrviczp94r8wqlkv5q6ab43c8w9")))) (arguments
(build-system gnu-build-system) `(#:tests? #f ; no tests
(arguments #:make-flags (list (string-append "CC=" ,(cc-for-target))
'(#:tests? #f ; no tests (string-append "PREFIX=" %output)
#:make-flags (list "CC=gcc" (string-append "UDEVDIR=" %output "/lib/udev/rules.d/"))
(string-append "PREFIX=" %output) #:phases
(string-append "UDEVDIR=" %output "/lib/udev/rules.d/")) (modify-phases %standard-phases
#:phases (delete 'configure)
(modify-phases %standard-phases (add-after 'unpack 'adjust-udev-rules
(delete 'configure) (lambda _
(add-after 'unpack 'adjust-udev-rules (substitute* "90-brightnessctl.rules"
(lambda _ (("/bin/") "/run/current-system/profile/bin/"))
(substitute* "90-brightnessctl.rules" #t)))))
(("/bin/") "/run/current-system/profile/bin/")) (synopsis "Backlight and LED brightness control")
#t))))) (description
(home-page "https://github.com/Hummer12007/brightnessctl") "This program allows you read and control device brightness. Devices
(synopsis "Backlight and LED brightness control")
(description
"This program allows you read and control device brightness. Devices
include backlight and LEDs. It can also preserve current brightness before include backlight and LEDs. It can also preserve current brightness before
applying the operation, such as on lid close. applying the operation, such as on lid close.
The appropriate permissions must be set on the backlight or LED control The appropriate permissions must be set on the backlight or LED control
interface in sysfs, which can be accomplished with the included udev rules.") interface in sysfs, which can be accomplished with the included udev rules.")
(license license:expat)))) (license license:expat)))
(define-public tlp (define-public tlp
(package (package