From 777c91a14817929d37e4cc60a80f3b3f078fe9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Miguel=20S=C3=A1nchez?= Date: Mon, 2 Jan 2017 20:27:42 +0100 Subject: [PATCH] gnu: Add beep. * gnu/packages/terminals (beep): New variable. --- gnu/packages/terminals.scm | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm index 52767ba..0bb75a5 100644 --- a/gnu/packages/terminals.scm +++ b/gnu/packages/terminals.scm @@ -4,7 +4,7 @@ ;;; Copyright © 2016 Alex Griffin ;;; Copyright © 2016 David Craven ;;; Copyright © 2016 Ludovic Courtès -;;; Copyright © 2016 José Miguel Sánchez García +;;; Copyright © 2017 José Miguel Sánchez García ;;; ;;; This file is part of GNU Guix. ;;; @@ -326,3 +326,29 @@ configuration, testing, and debugging tool. It has also serves well as a low-tech serial communications program to allow access to all types of devices that provide serial consoles.") (license license:gpl2+))) + +(define-public beep + (package + (name "beep") + (version "1.3") + (source (origin + (method url-fetch) + (uri (string-append "http://www.johnath.com/" name "/" + name "-" version ".tar.gz")) + (sha256 + (base32 "0bgch6jq5cahakk3kbr9549iysf2dik09afixxy5brbxk1xfzb2r")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No tests. + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'patch-makefile ; It doesn't install without this + (let ((out (assoc-ref %outputs "out"))) + (lambda _ + (mkdir-p (string-append out "/bin")) + (mkdir-p (string-append out "/man/man1")) + (substitute* "Makefile" (("/usr") out)))))))) + (synopsis "Command line utility for Linux that beeps the PC speaker.") + (description "Command line utility for Linux that beeps the PC speaker.") + (home-page "http://www.johnath.com/beep") -- 2.10.1.windows.1