git » ardour.git » commit eb78467

Upgrade to 7.0.

author David Runge
2022-10-15 13:03:43 UTC
committer David Runge
2022-10-15 13:03:43 UTC
parent 09b56924b1ff788061a57499dd6bd1138d1b5597

Upgrade to 7.0.

Update patch to re-vendor qm-dsp (current version still not compatible).
Remove unnecessary quotes and curly braces.
Switch to tracking the commit of a tag instead of only the tag (to prevent moving tags).
Add vamp-host to list of provides (ardour allows loading arbitrary plugins using Lua).
Simplify the depends for the package to expose sodeps alongside the package they're provided in.

PKGBUILD +55 -33
ardour-6.2-vendor_qm-dsp.patch +0 -37
ardour-7.0-re-vendor_qm-dsp.patch +22 -0

diff --git a/PKGBUILD b/PKGBUILD
index 226cd60..77541fb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,42 +4,41 @@
 
 _name=Ardour
 pkgname=ardour
-pkgver=6.9
-pkgrel=5
+pkgver=7.0
+_commit=a1e19f7ed7687692d05459a425e5b14f34a835ba  # refs/tags/7.0
+pkgrel=1
 pkgdesc="Professional-grade digital audio workstation"
 arch=(x86_64)
 url="https://ardour.org/"
 license=(GPL2)
 groups=(pro-audio)
-depends=(cairo gcc-libs glibc glibmm gtkmm libx11 libxml2
-soundtouch taglib)
+depends=(cairo gcc-libs glibc gtkmm libx11 taglib)
 makedepends=(atkmm aubio boost cairomm cppunit curl dbus doxygen fftw flac
-fluidsynth fontconfig freetype2 gdk-pixbuf2 git glib2 graphviz gtk2 hidapi
-itstool jack libarchive liblo liblrdf libltc libogg libpulse libsamplerate
-libsndfile libusb libwebsockets lilv lv2 pango pangomm readline rubberband serd
-sord sratom suil vamp-plugin-sdk waf)
+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)
 optdepends=(
   'harvid: for video timeline and MP3 export'
   'new-session-manager: for session management'
   'xjadeo: for video monitoring'
 )
-provides=(ladspa-host lv2-host vst-host vst3-host)
+provides=(ladspa-host lv2-host vamp-host vst-host vst3-host)
 options=(debug)
-source=("${pkgname}::git+https://github.com/${pkgname}/${pkgname}.git#tag=${pkgver}"
-        "${pkgname}-6.2-vendor_qm-dsp.patch")
+source=(
+  $pkgname::git+https://github.com/$pkgname/$pkgname.git#tag=$_commit
+  $pkgname-7.0-re-vendor_qm-dsp.patch
+)
 sha512sums=('SKIP'
-            '2d69e23948ed8679b7fd872c50d2ea44299330c6ed356158689a1f6befb3841f2d9b8a889d4891436c65b57d90601156bc916ad0f0f385c91b22131a766467a8')
+            'a3da14925bc25d8a57ba3e137c4b2b04010054667ac4ae2aec116ce6c157b03c9dd76bf4d73c313022282362d19b91683f062d6ab2ee0c73a576d3fa6272bd1d')
 b2sums=('SKIP'
-        'b28aebf0a5791795d94e29780c064faa1b858da6b89f1ff32edb2aea9de138f2e91b01fcbd16d278e47fd1c7bf892cf7838fea946b38d1196d758873f62742aa')
+        '73845adce9a48938cd7aef5fbc65f492e470de316620d278365d247c80caef44531e850fbd3d2f5de65a8562e67aabfd982c938439bd3670726a27bc003be017')
 
 prepare() {
-  cd "${pkgname}"
-
-  # fix mime package installation location: https://bugs.archlinux.org/task/72867
-  git cherry-pick -n b95078ae464f0d132d2d0a9d5727a72bd1ee88d7
   # using vendored version of qm-dsp because qm-dsp >= 1.8.0 is not compatible
-  patch -Np1 -i "../${pkgname}-6.2-vendor_qm-dsp.patch"
+  patch -Np1 -d $pkgname -i ../$pkgname-7.0-re-vendor_qm-dsp.patch
 
+  cd $pkgname
   # unsetting gtk2 rc (FS#54389)
   sed -e '8iexport GTK2_RC_FILES=/dev/null' -i gtk2_ardour/ardour.sh.in
 
@@ -58,7 +57,7 @@ prepare() {
 }
 
 build() {
-  cd "${pkgname}"
+  cd $pkgname
   export LINKFLAGS="$LDFLAGS"
   waf configure --prefix=/usr \
                 --configdir=/etc \
@@ -75,21 +74,44 @@ build() {
 }
 
 package() {
-  depends+=(libasound.so libatkmm-1.6.so libaubio.so libarchive.so
-  libcairomm-1.0.so libcurl.so libdbus-1.so libfftw3f.so libfftw3f_threads.so
-  libfluidsynth.so libfontconfig.so libgdk_pixbuf-2.0.so
-  libgdk-x11-2.0.so libglib-2.0.so libgobject-2.0.so
-  libgtk-x11-2.0.so libjack.so liblo.so liblilv-0.so liblrdf.so libltc.so
-  libpango-1.0.so libpangocairo-1.0.so libpangoft2-1.0.so
-  libpangomm-1.4.so libpulse.so libreadline.so librubberband.so
-  libsamplerate.so libsndfile.so
-  libsuil-0.so libusb-1.0.so libvamp-hostsdk.so libvamp-sdk.so
-  libwebsockets.so)
+  depends+=(
+    alsa-lib libasound.so
+    atkmm libatkmm-1.6.so
+    aubio libaubio.so
+    cairomm libcairomm-1.0.so
+    curl libcurl.so
+    dbus libdbus-1.so
+    fftw libfftw3f.so libfftw3f_threads.so
+    fluidsynth libfluidsynth.so
+    fontconfig libfontconfig.so
+    gdk-pixbuf2 libgdk_pixbuf-2.0.so
+    glib2 libglib-2.0.so libgobject-2.0.so
+    glibmm libglibmm-2.4.so
+    gtk2 libgdk-x11-2.0.so libgtk-x11-2.0.so 
+    jack libjack.so
+    libarchive libarchive.so
+    liblo liblo.so
+    libpulse libpulse.so
+    liblrdf liblrdf.so
+    libltc libltc.so
+    libsamplerate libsamplerate.so
+    libsndfile libsndfile.so
+    libusb libusb-1.0.so
+    libwebsockets libwebsockets.so
+    libxml2 libxml2.so
+    lilv liblilv-0.so
+    pango libpango-1.0.so libpangocairo-1.0.so libpangoft2-1.0.so
+    pangomm libpangomm-1.4.so
+    readline libreadline.so
+    rubberband librubberband.so
+    suil libsuil-0.so
+    vamp-plugin-sdk libvamp-hostsdk.so libvamp-sdk.so
+  )
 
-  cd "${pkgname}"
-  waf i18n --destdir="${pkgdir}"
-  waf install --destdir="${pkgdir}"
+  cd $pkgname
+  waf i18n --destdir="$pkgdir"
+  waf install --destdir="$pkgdir"
   # man pages
-  install -vDm 644 "${pkgname}.1"* -t "${pkgdir}/usr/share/man/man1/"
+  install -vDm 644 $pkgname.1 -t "$pkgdir/usr/share/man/man1/"
 }
 # vim:set ts=2 sw=2 et:
diff --git a/ardour-6.2-vendor_qm-dsp.patch b/ardour-6.2-vendor_qm-dsp.patch
deleted file mode 100644
index f8265fd..0000000
--- a/ardour-6.2-vendor_qm-dsp.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-diff --git i/libs/qm-dsp/wscript w/libs/qm-dsp/wscript
-index 775098e06b..13f6b9410a 100644
---- i/libs/qm-dsp/wscript
-+++ w/libs/qm-dsp/wscript
-@@ -23,17 +23,10 @@ def options(opt):
-     autowaf.set_options(opt)
- 
- def configure(conf):
--    if conf.is_defined('USE_EXTERNAL_LIBS'):
--        conf.check_cxx(header_name="base/Pitch.h", mandatory=True)
--        conf.check_cxx(lib="qm-dsp", uselib_store="QMDSP", mandatory=True)
--    else:
--        conf.load('compiler_cxx')
--        autowaf.configure(conf)
-+    conf.load('compiler_cxx')
-+    autowaf.configure(conf)
- 
- def build(bld):
--    if bld.is_defined('USE_EXTERNAL_LIBS'):
--        return
--
-     # Host Library
-     obj = bld(features = 'c cxx cxxstlib')
-     obj.source = '''
-diff --git i/wscript w/wscript
-index 1c9bb1ff5d..95d377d8a7 100644
---- i/wscript
-+++ w/wscript
-@@ -1041,8 +1041,6 @@ def configure(conf):
- 
-     if Options.options.use_external_libs:
-         conf.define('USE_EXTERNAL_LIBS', 1)
--        conf.env.append_value(
--            'CXXFLAGS', '-I' + Options.options.qm_dsp_include)
- 
-     if Options.options.boost_include != '':
-         conf.env.append_value('CXXFLAGS', '-I' + Options.options.boost_include)
diff --git a/ardour-7.0-re-vendor_qm-dsp.patch b/ardour-7.0-re-vendor_qm-dsp.patch
new file mode 100644
index 0000000..0a21784
--- /dev/null
+++ b/ardour-7.0-re-vendor_qm-dsp.patch
@@ -0,0 +1,22 @@
+diff --git i/libs/qm-dsp/wscript w/libs/qm-dsp/wscript
+index a59801bf36..8432c89f0c 100644
+--- i/libs/qm-dsp/wscript
++++ w/libs/qm-dsp/wscript
+@@ -23,6 +23,7 @@ def options(opt):
+     autowaf.set_options(opt)
+ 
+ def configure(conf):
++    return
+     if conf.is_defined('USE_EXTERNAL_LIBS'):
+         conf.check_cxx(header_name="base/Pitch.h", mandatory=True, msg="Checking for qm-dsp headers")
+         conf.check_cxx(lib="qm-dsp", uselib_store="QMDSP", mandatory=True)
+@@ -51,9 +52,6 @@ def configure(conf):
+                            )
+ 
+ def build(bld):
+-    if bld.is_defined('USE_EXTERNAL_LIBS'):
+-        return
+-
+     # Host Library
+     obj = bld(features = 'c cxx cxxstlib')
+     obj.source = '''