[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#64374] [PATCH v2 2/3] gnu: ardour: Install bundled MIDI loops.
From: |
Sughosha |
Subject: |
[bug#64374] [PATCH v2 2/3] gnu: ardour: Install bundled MIDI loops. |
Date: |
Mon, 3 Jul 2023 22:52:18 +0200 |
* gnu/packages/audio.scm (ardour)[#:phases]: Add install-bundled-media.
[native-inputs]: Add unzip.
[license]: Add cc0 and expat.
---
gnu/packages/audio.scm | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 550f653420..25fa8acf33 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -735,6 +735,14 @@ (define (ardour-rpath-phase major-version)
libdir "/surfaces" ":"
libdir "/vamp" "\"]"))))))
+(define ardour-bundled-media
+ (origin
+ (method url-fetch)
+ (uri "http://stuff.ardour.org/loops/ArdourBundledMedia.zip")
+ (sha256
+ (base32
+ "0k135sm559yywfidrya7h5cddwqa2p2abhimrar2khydf43f03d0"))))
+
(define-public ardour
(package
(name "ardour")
@@ -793,7 +801,14 @@ (define-public ardour
(add-after 'install 'install-man-page
(lambda* (#:key outputs #:allow-other-keys)
(install-file "ardour.1" (string-append (assoc-ref outputs "out")
- "/share/man/man1")))))
+ "/share/man/man1"))))
+ (add-after 'install 'install-bundled-media
+ (lambda* (#:key outputs #:allow-other-keys)
+ (invoke "unzip" "-d" (string-append (assoc-ref outputs "out")
+ "/share/ardour"
+ ,(version-major version)
+ "/media/")
+ ,ardour-bundled-media))))
#:test-target "test"))
(inputs
(list alsa-lib
@@ -848,14 +863,17 @@ (define-public ardour
gettext-minimal
itstool
perl
- pkg-config))
+ pkg-config
+ unzip))
(home-page "https://ardour.org")
(synopsis "Digital audio workstation")
(description
"Ardour is a multi-channel digital audio workstation, allowing users to
record, edit, mix and master audio and MIDI projects. It is targeted at audio
engineers, musicians, soundtrack editors and composers.")
- (license license:gpl2+)))
+ (license (list license:gpl2+
+ license:cc0 ;used by MIDI Beats
+ license:expat)))) ;used by MIDI Chords and Progressions
(define-public audacity
(package
--
2.40.1