Date: Saturday, October 15, 2022 @ 22:06:19
  Author: dvzrv
Revision: 1329319

upgpkg: ardour 7.0-1: Rebuild to add MIDI files which come with the bundled 
upstream version of ardour.

Modified:
  ardour/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-15 22:04:04 UTC (rev 1329318)
+++ PKGBUILD    2022-10-15 22:06:19 UTC (rev 1329319)
@@ -2,7 +2,6 @@
 # Contributor: Ray Rashif <[email protected]>
 # Contributor: SpepS <dreamspepser at yahoo dot it>
 
-_name=Ardour
 pkgname=ardour
 pkgver=7.0
 _commit=a1e19f7ed7687692d05459a425e5b14f34a835ba  # refs/tags/7.0
@@ -10,7 +9,7 @@
 pkgdesc="Professional-grade digital audio workstation"
 arch=(x86_64)
 url="https://ardour.org/";
-license=(GPL2)
+license=(custom:CC0 GPL2 MIT)
 groups=(pro-audio)
 depends=(cairo gcc-libs glibc gtkmm libx11 taglib)
 makedepends=(atkmm aubio boost cairomm cppunit curl dbus doxygen fftw flac
@@ -17,7 +16,7 @@
 fluidsynth fontconfig freetype2 gdk-pixbuf2 git glib2 glibmm graphviz gtk2
 hidapi itstool jack libarchive liblo liblrdf libltc libogg libpulse
 libsamplerate libsndfile libusb libwebsockets libxml2 lilv lv2 pango pangomm
-readline rubberband serd sord sratom suil vamp-plugin-sdk waf)
+readline rubberband serd sord sratom suil unzip vamp-plugin-sdk waf)
 optdepends=(
   'harvid: for video timeline and MP3 export'
   'new-session-manager: for session management'
@@ -27,11 +26,15 @@
 options=(debug)
 source=(
   $pkgname::git+https://github.com/$pkgname/$pkgname.git#tag=$_commit
+  
$pkgname-midi-$pkgver.zip::http://stuff.ardour.org/loops/ArdourBundledMedia.zip
   $pkgname-7.0-re-vendor_qm-dsp.patch
 )
+noextract=($pkgname-midi-$pkgver.zip)
 sha512sums=('SKIP'
+            
'94b681f989e834f5de25ce87da9c174b11d90617063f8c96147d7eb470391b35f6d54b85de16da8d963cacb01b50d1c1fab0fddd18eb3b086fe17124ecfa4f65'
             
'a3da14925bc25d8a57ba3e137c4b2b04010054667ac4ae2aec116ce6c157b03c9dd76bf4d73c313022282362d19b91683f062d6ab2ee0c73a576d3fa6272bd1d')
 b2sums=('SKIP'
+        
'e31be6b51a217e2f7f799aa1d6e8c3cd024d80ab2d8d4371496a2b8bf0215749979217b565909841a346d6b3128fbfd674d2fae64b9fe741a5b418cd184c23be'
         
'73845adce9a48938cd7aef5fbc65f492e470de316620d278365d247c80caef44531e850fbd3d2f5de65a8562e67aabfd982c938439bd3670726a27bc003be017')
 
 prepare() {
@@ -108,10 +111,19 @@
     vamp-plugin-sdk libvamp-hostsdk.so libvamp-sdk.so
   )
 
+  (
   cd $pkgname
   waf i18n --destdir="$pkgdir"
   waf install --destdir="$pkgdir"
-  # man pages
   install -vDm 644 $pkgname.1 -t "$pkgdir/usr/share/man/man1/"
+  )
+
+  # installation of MIDI files is a bit of a horrorshow, as upstream is not 
flexible about tarball naming, etc.
+  install -vdm 755 "$pkgdir/usr/share/$pkgname${pkgver/.*/}/media/"
+  unzip $pkgname-midi-$pkgver.zip -d 
"$pkgdir/usr/share/$pkgname${pkgver/.*/}/media/"
+  install -vdm 755 "$pkgdir/usr/share/licenses/$pkgname/"
+  ln -s "/usr/share/$pkgname${pkgver/.*/}/media/MIDI Beats/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE.beats"
+  ln -s "/usr/share/$pkgname${pkgver/.*/}/media/MIDI Chords/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE.chords"
+  ln -s "/usr/share/$pkgname${pkgver/.*/}/media/MIDI Progressions/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE.progressions"
 }
 # vim:set ts=2 sw=2 et:

Reply via email to