guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Add sfarklib & sfarkxtc


From: Ricardo Wurmus
Subject: [PATCH] Add sfarklib & sfarkxtc
Date: Tue, 23 Jun 2015 21:26:56 +0200

>From bac01c1b64ed14fc1c26f35961f1c8fd29caabcb Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <address@hidden>
Date: Tue, 23 Jun 2015 21:25:19 +0200
Subject: [PATCH 1/2] gnu: Add sfarklib.

* gnu/packages/compression.scm (sfarklib): New variable.
---
 gnu/packages/compression.scm | 37 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 78f967c..898d9c2 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2014, 2015 Mark H Weaver <address@hidden>
 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <address@hidden>
 ;;; Copyright © 2015 Eric Bavier <address@hidden>
+;;; Copyright © 2015 Ricardo Wurmus <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -24,10 +25,12 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system perl)
   #:use-module (gnu packages base)
-  #:use-module (gnu packages perl))
+  #:use-module (gnu packages perl)
+  #:use-module ((srfi srfi-1) #:select (last)))
 
 (define-public zlib
   (package
@@ -328,6 +331,38 @@ processed by a Bourne-type shell to unpack the original 
collection of files.
 This package is mostly for compatibility and historical interest.")
     (license license:gpl3+)))
 
+(define-public sfarklib
+  (package
+    (name "sfarklib")
+    (version "2.23.5ca96b779")
+    (source (origin
+              ;; The 2.23 tarball does not include the Makefile, but only
+              ;; Makefile.am.
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/raboof/sfArkLib.git";)
+                    (commit (last (string-split version #\.)))))
+              (sha256
+               (base32
+                "1hk1x88dl5b9jq016r6rx5wyszxknyv0sa7gmil4m4alnhwl4h7h"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f ;no "check" target
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+                  (lambda* (#:key outputs #:allow-other-keys)
+                    (substitute* "Makefile"
+                      (("/usr/local") (assoc-ref outputs "out")))
+                    #t)))))
+    (inputs
+     `(("zlib" ,zlib)))
+    (home-page "https://github.com/raboof/sfArkLib";)
+    (synopsis "Library for SoundFont decompression")
+    (description
+     "Library for decompressing SoundFonts compressed with sfArk.")
+    (license license:gpl3+)))
+
 (define-public libmspack
   (package
     (name "libmspack")
-- 
2.4.3

>From 5618f7936ca27261265040dc59d2fba6ffbefd72 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <address@hidden>
Date: Tue, 23 Jun 2015 21:25:57 +0200
Subject: [PATCH 2/2] gnu: Add sfarkxtc.

* gnu/packages/compression.scm (sfarkxtc): New variable.
---
 gnu/packages/compression.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 898d9c2..1cf84a3 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -363,6 +363,39 @@ This package is mostly for compatibility and historical 
interest.")
      "Library for decompressing SoundFonts compressed with sfArk.")
     (license license:gpl3+)))
 
+(define-public sfarkxtc
+  (package
+    (name "sfarkxtc")
+    (version "b5e0a2ba39")
+    (source (origin
+              ;; There are no release tarballs, so we just fetch the latest
+              ;; commit at this time.
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/raboof/sfarkxtc.git";)
+                    (commit version)))
+              (sha256
+               (base32
+                "0f5x6i46qfl6ry21s7g2p4sd4b2r1g4fb03yqi2vv4kq3saryhvj"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f ;no "check" target
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+                  (lambda* (#:key outputs #:allow-other-keys)
+                    (substitute* "Makefile"
+                      (("/usr/local") (assoc-ref outputs "out")))
+                    #t)))))
+    (inputs
+     `(("zlib" ,zlib)
+       ("sfarklib" ,sfarklib)))
+    (home-page "https://github.com/raboof/sfarkxtc";)
+    (synopsis "Basic sfArk decompressor")
+    (description "SfArk extractor converts SoundFonts in the legacy sfArk v2
+file format to the sf2.")
+    (license license:gpl3+)))
+
 (define-public libmspack
   (package
     (name "libmspack")
-- 
2.4.3


reply via email to

[Prev in Thread] Current Thread [Next in Thread]