gnu: progress: Update to 0.17.

* gnu/packages/admin.scm (progress): Update to 0.17.
[arguments]: Use G-expressions. Use PKG-CONFIG-FOR-TARGET.

Change-Id: Ic92f305e7200cd808aeab552966ba9374f568f59
This commit is contained in:
Zheng Junjie 2024-09-18 19:38:01 +08:00
parent 610b395424
commit a144861ee0
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -277,7 +277,7 @@ usual file attributes can be checked for inconsistencies.")
(define-public progress (define-public progress
(package (package
(name "progress") (name "progress")
(version "0.16") (version "0.17")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -285,7 +285,7 @@ usual file attributes can be checked for inconsistencies.")
(url "https://github.com/Xfennec/progress") (url "https://github.com/Xfennec/progress")
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(sha256 (sha256
(base32 "0gf10j9zd8spain94b5kigknwbdqajiy6fjsa5hhwsc1biz34hcj")) (base32 "1cg1vdk2891sdcbn7yc9a6mzdxplm63qsk1kq0jr4j8ym28v09xf"))
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (native-inputs
@ -293,18 +293,14 @@ usual file attributes can be checked for inconsistencies.")
(inputs (inputs
(list ncurses)) (list ncurses))
(arguments (arguments
`(#:tests? #f ; no test suite (list #:tests? #f ; no test suite
#:make-flags #:make-flags
(let ((target ,(%current-target-system))) #~(list (string-append "CC=" #$(cc-for-target))
(list ,(string-append "CC=" (cc-for-target)) (string-append "PKG_CONFIG=" #$(pkg-config-for-target))
(string-append "PKG_CONFIG=" (string-append "PREFIX=" #$output))
(if target #:phases
(string-append target "-pkg-config") #~(modify-phases %standard-phases
"pkg-config")) (delete 'configure)))) ; no configure script
(string-append "PREFIX=" (assoc-ref %outputs "out"))))
#:phases
(modify-phases %standard-phases
(delete 'configure)))) ; no configure script
(home-page "https://github.com/Xfennec/progress") (home-page "https://github.com/Xfennec/progress")
(synopsis "Program to view the progress of the coreutils commands") (synopsis "Program to view the progress of the coreutils commands")
(description "A program that looks for coreutils basic commands (cp, mv, (description "A program that looks for coreutils basic commands (cp, mv,