[arch-commits] Commit in dpf-plugins/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Fri Jan 15 14:52:31 UTC 2021


    Date: Friday, January 15, 2021 @ 14:52:30
  Author: dvzrv
Revision: 821009

upgpkg: dpf-plugins 1.4-1: Upgrade to 1.4.

Add optdepends for the various plugin formats to suggest hosts.
Make the XDG desktop files more compliant with the standard.
Run lv2lint in check() and open upstream ticket about issues.
Minor cleanups.

Modified:
  dpf-plugins/trunk/PKGBUILD

----------+
 PKGBUILD |   51 ++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 36 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-15 14:22:26 UTC (rev 821008)
+++ PKGBUILD	2021-01-15 14:52:30 UTC (rev 821009)
@@ -1,7 +1,7 @@
 # Maintainer: David Runge <dave at sleepmap.de>
 pkgname=dpf-plugins
-pkgver=1.3
-pkgrel=2
+pkgver=1.4
+pkgrel=1
 pkgdesc="Collection of DPF-based plugins"
 arch=('x86_64')
 url="https://github.com/DISTRHO/DPF-Plugins"
@@ -9,16 +9,23 @@
 groups=('ladspa-plugins' 'lv2-plugins' 'pro-audio' 'vst-plugins')
 depends=('libglvnd')
 makedepends=('dssi' 'gendesk' 'ladspa' 'lv2' 'projectm')
-optdepends=('jack: for standalone applications'
+checkdepends=('lv2lint' 'kxstudio-lv2-extensions')
+optdepends=('dssi-host: for dssi-plugins'
+            'jack: for standalone applications'
+            'ladspa-host: for LADSPA plugins'
             'liblo: for dssi plugins'
-            'projectm: for ProM plugin')
+            'lv2-host: for LV2 plugins'
+            'projectm: for ProM plugin'
+            'vst-host: for VST plugins')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/DISTRHO/${pkgname}/archive/v${pkgver}.tar.gz")
-sha512sums=('ead34a69824c43fcfab0652c42ada46c488e29848bad92601aac33e32d9576ba9f9dafdf068505ba9d96d526b1c32da78253a593bcc272d6d03654a8cab3ee9b')
+sha512sums=('9b603c8a7f74823c69b7ceb8b3d307972f32aad890e46d98fc9e98d175dff56705af3f2362d16a58c571511ffc706a068472fd58c0104e0a86df727217e9141c')
+b2sums=('eaf8d6a12bb34c433de666471e8b626ee4072487d1e1272f7aef4c36a77862730922a14ee8bdfbfd274a699967f60ac0dd51d38b3882cfa442f89657bef37d14')
+_names=( '3BandEQ' '3BandSplitter' 'AmplitudeImposer' 'CycleShifter' 'Kars'
+'MVerb' 'MaBitCrush' 'MaFreeverb' 'MaGigaverb' 'MaPitchshift' 'Nekobi'
+'PingPongPan' 'ProM' 'SoulForce' 'glBars')
 
 prepare() {
-  mv -v "DPF-Plugins-${pkgver}" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
-  declare -A comments=(
+  declare -A _comments=(
     ["3BandEQ"]="A three band equalizer"
     ["3BandSplitter"]="A three band splitter"
     ["AmplitudeImposer"]="Takes 2 stereo inputs and imposes the amplitude envelope of the first one on the second one"
@@ -35,7 +42,7 @@
     ["SoulForce"]="A fairly standard waveshaping distortion plugin"
     ["glBars"]="An OpenGL bars visualization plugin"
   )
-  declare -A generic=(
+  declare -A _generic=(
     ["3BandEQ"]="Equalizer"
     ["3BandSplitter"]="Splitter"
     ["AmplitudeImposer"]="Wave Shaper"
@@ -52,13 +59,18 @@
     ["SoulForce"]="Waveshaping Distortion"
     ["glBars"]="Bars Visualization"
   )
-  for name in "${!comments[@]}"; do
+  local _name
+
+  mv -v "DPF-Plugins-${pkgver}" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  echo "${_names[@]}"
+  for _name in "${_names[@]}"; do
     gendesk -n \
-            --pkgname "${name,,}" \
-            --name "${name}" \
-            --exec "/usr/bin/${name}" \
-            --pkgdesc "${comments[$name]}" \
-            --genericname "${generic[$name]}" \
+            --pkgname "net.sf.distrho.${_name}" \
+            --name "${_name}" \
+            --exec "/usr/bin/${_name}" \
+            --pkgdesc "${_comments[$_name]}" \
+            --genericname "${_generic[$_name]}" \
             --categories "AudioVideo;Audio"
   done
 }
@@ -71,6 +83,15 @@
        BUILD_JACK=true
 }
 
+check() {
+  local _name
+  cd "$pkgname-$pkgver"
+  # except symbol pattern from tests as it is hard to remove according to upstream
+  for _name in "${_names[@]}"; do
+    lv2lint -s "lv2_generate_ttl" -Mpack -I "bin/${_name}.lv2/" "http://distrho.sf.net/plugins/${_name}" || echo "Known issue with license URI: https://github.com/DISTRHO/DPF-Plugins/issues/17"
+  done
+}
+
 package() {
   cd "$pkgname-$pkgver"
   make DESTDIR="$pkgdir/" \



More information about the arch-commits mailing list