Patchwork gnu: Add SBC.

login
register
mail settings
Submitter Ricardo Wurmus
Date May 14, 2016, 9:28 a.m.
Message ID <1463218135-8621-1-git-send-email-rekado@elephly.net>
Download mbox | patch
Permalink /patch/12251/
State New
Headers show

Comments

Ricardo Wurmus - May 14, 2016, 9:28 a.m.
* gnu/packages/linux.scm (sbc): New variable.
---
 gnu/packages/linux.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
Ludovic Courtès - May 14, 2016, 8:19 p.m.
Ricardo Wurmus <rekado@elephly.net> skribis:

> * gnu/packages/linux.scm (sbc): New variable.

Okaaaay!

Thanks,
Ludo'.

Patch

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index aa778be..7c5ca6a 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -11,6 +11,7 @@ 
 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
 ;;; Copyright © 2016 Raymond Nicholson <rain1@openmailbox.org>
 ;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
+;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2385,6 +2386,29 @@  system calls, important for the performance of databases and other advanced
 applications.")
     (license license:lgpl2.1+)))
 
+(define-public sbc
+  (package
+    (name "sbc")
+    (version "1.3")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://www.kernel.org/pub/linux/bluetooth/"
+                                  name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "02ckd2z51z0h85qgv7x8vv8ybp5czm9if1z78411j53gaz7j4476"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("libsndfile" ,libsndfile)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (home-page "https://www.kernel.org/pub/linux/bluetooth/")
+    (synopsis "Bluetooth subband audio codec")
+    (description
+     "The SBC is a digital audio encoder and decoder used to transfer data to
+Bluetooth audio output devices like headphones or loudspeakers.")
+    (license license:gpl2+)))
+
 (define-public bluez
   (package
     (name "bluez")