Skip to content
Snippets Groups Projects
Unverified Commit 231908d9 authored by Tobias Geerinckx-Rice's avatar Tobias Geerinckx-Rice
Browse files

gnu: beep: Update to 1.4.3.

* gnu/packages/terminals.scm (beep): Update to 1.4.3.
[source, home-page]: Switch to maintained fork.
[arguments]: Use #:make-flags instead of SUBSTITUTE*.
parent 2f49edaa
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,7 @@ (define-module (gnu packages terminals) ...@@ -47,6 +47,7 @@ (define-module (gnu packages terminals)
#:use-module (gnu packages docbook) #:use-module (gnu packages docbook)
#:use-module (gnu packages fontutils) #:use-module (gnu packages fontutils)
#:use-module (gnu packages freedesktop) #:use-module (gnu packages freedesktop)
#:use-module (gnu packages gcc)
#:use-module (gnu packages gettext) #:use-module (gnu packages gettext)
#:use-module (gnu packages gl) #:use-module (gnu packages gl)
#:use-module (gnu packages glib) #:use-module (gnu packages glib)
...@@ -372,36 +373,38 @@ (define-public picocom ...@@ -372,36 +373,38 @@ (define-public picocom
(define-public beep (define-public beep
(package (package
(name "beep") (name "beep")
(version "1.3") (version "1.4.3")
(source (origin (source
(method url-fetch) (origin
(uri (string-append "http://www.johnath.com/beep/" (method git-fetch)
"beep-" version ".tar.gz")) (uri (git-reference
(sha256 ;; The original beep 1.3 at <http://www.johnath.com/beep> has been
(base32 ;; unmaintained for some time, and vulnerable to at least two CVEs:
"0bgch6jq5cahakk3kbr9549iysf2dik09afixxy5brbxk1xfzb2r")))) ;; https://github.com/johnath/beep/issues/11#issuecomment-454056858
;; Use this maintained fork instead.
(url "https://github.com/spkr-beep/beep.git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1gramwa2zm59kqjhv96fi8vg7l6lyffv02h0310vb90naschi99g"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f ; no tests `(#:tests? #f ; no tests
#:make-flags
(list (string-append "prefix=" (assoc-ref %outputs "out"))
(string-append "pkgdocdir=$(docdir)/" ,name "-" ,version))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure) (delete 'configure)))) ; no configure script
(add-after 'unpack 'patch-makefile (native-inputs
(lambda* (#:key outputs #:allow-other-keys) `(("gcc" ,gcc-8))) ; for ‘-fstack-clash-protection’
(substitute* "Makefile" (("/usr") (assoc-ref outputs "out")))
#t))
(add-before 'install 'create-output-directories
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref %outputs "out")))
(mkdir-p (string-append out "/bin"))
(mkdir-p (string-append out "/man/man1"))))))))
(synopsis "Linux command-line utility to control the PC speaker") (synopsis "Linux command-line utility to control the PC speaker")
(description "beep allows the user to control the PC speaker with precision, (description "beep allows the user to control the PC speaker with precision,
allowing different sounds to indicate different events. While it can be run allowing different sounds to indicate different events. While it can be run
quite happily on the command line, its intended place of residence is within quite happily on the command line, its intended place of residence is within
scripts, notifying the user when something interesting occurs. Of course, it scripts, notifying the user when something interesting occurs. Of course, it
has no notion of what's interesing, but it's very good at that notifying part.") has no notion of what's interesing, but it's very good at that notifying part.")
(home-page "http://www.johnath.com/beep") (home-page "https://github.com/spkr-beep/beep")
(license license:gpl2+))) (license license:gpl2+)))
(define-public unibilium (define-public unibilium
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment