[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/09: gnu: Add freepats-gm.
From: |
guix-commits |
Subject: |
02/09: gnu: Add freepats-gm. |
Date: |
Tue, 19 Apr 2022 14:37:39 -0400 (EDT) |
lilyp pushed a commit to branch master
in repository guix.
commit e597612bf3ae205e6baf24abee96b9d680367b00
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Sat Nov 6 14:06:57 2021 +0100
gnu: Add freepats-gm.
* gnu/packages/audio.scm (freepats-gm): New variable.
---
gnu/packages/audio.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 13e0f02837..3ce8269358 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -1980,6 +1980,51 @@ patches that can be used with softsynths such as
Timidity and WildMidi.")
;; GPLv2+ with exception for compositions using these patches.
(license license:gpl2+)))
+(define-public freepats-gm
+ (package
+ (name "freepats-gm")
+ (version "20210329")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://freepats.zenvoid.org/SoundSets/"
+ "FreePats-GeneralMIDI/FreePatsGM-SF2-"
version ".7z"))
+ (sha256
+ (base32
+ "19a1mp9yi33j2zff4mjvhrjz97dwwgjwzfdlf84j9xyydhx0crhc"))))
+ (build-system trivial-build-system)
+ (native-inputs
+ `(("p7zip" ,p7zip)))
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (let ((dir (string-append "FreePatsGM-SF2-" ,version))
+ (file (string-append "FreePatsGM-" ,version ".sf2"))
+ (out (string-append %output "/share/soundfonts"))
+ (doc (string-append %output "/share/doc/freepats-gm-" ,version)))
+ (use-modules (guix build utils))
+ (invoke (string-append (assoc-ref %build-inputs "p7zip") "/bin/7z")
+ "e" (assoc-ref %build-inputs "source")
+ (string-append dir "/" file)
+ (string-append dir "/gpl.txt")
+ (string-append dir "/cc0.txt")
+ (string-append dir "/readme.txt"))
+ (mkdir-p out)
+ (copy-file file (string-append out "/FreePatsGM.sf2"))
+ (mkdir-p doc)
+ (for-each
+ (lambda (file)
+ (copy-file file (string-append doc "/" file)))
+ (find-files "." "\\.txt$"))
+ #t)))
+ (home-page "https://freepats.zenvoid.org/SoundSets/general-midi.html")
+ (synopsis "General MIDI sound set")
+ (description "FreePats is a project to create a free (as in free software)
+collection of digital instruments for music production. This sound bank is a
+partial release of the General MIDI sound set.")
+ (license (list
+ license:gpl3+ ; with sampling exception
+ license:cc0))))
+
(define-public guitarix
(package
(name "guitarix")
- branch master updated (cd23250c16 -> 0b681c5896), guix-commits, 2022/04/19
- 04/09: gnu: openttd-engine: Drop labels from inputs., guix-commits, 2022/04/19
- 07/09: gnu: openttd-openmsx: Use new package style., guix-commits, 2022/04/19
- 03/09: gnu: openttd: Let the music play., guix-commits, 2022/04/19
- 01/09: gnu: gnome-shell-extension-just-perfection: Update to 20.0., guix-commits, 2022/04/19
- 02/09: gnu: Add freepats-gm.,
guix-commits <=
- 06/09: gnu: openttd-opensfx: Use new package style., guix-commits, 2022/04/19
- 09/09: gnu: komikku: Update to 0.38.0., guix-commits, 2022/04/19
- 05/09: gnu: openttd-gfx: Use new package style., guix-commits, 2022/04/19
- 08/09: gnu: openttd: Use new package style., guix-commits, 2022/04/19