Date: Friday, April 28, 2023 @ 08:29:39
  Author: dvzrv
Revision: 1449054

upgpkg: dragonfly-reverb 3.2.10-1: Upgrade to 3.2.10.

Adapt to (yet again another) renamed tarball/ tarball contents.
Rename dragonfly-reverb-jack to dragonfly-reverb-standalone, since it's 
technically not relying on JACK specifically.
Use bash arrays with one line per entry for better handling.

Modified:
  dragonfly-reverb/trunk/PKGBUILD

----------+
 PKGBUILD |  121 ++++++++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 85 insertions(+), 36 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-28 08:06:15 UTC (rev 1449053)
+++ PKGBUILD    2023-04-28 08:29:39 UTC (rev 1449054)
@@ -1,25 +1,43 @@
 # Maintainer: David Runge <dv...@archlinux.org>
 
 pkgbase=dragonfly-reverb
-pkgname=(dragonfly-reverb dragonfly-reverb-clap dragonfly-reverb-jack 
dragonfly-reverb-lv2 dragonfly-reverb-vst dragonfly-reverb-vst3)
-_name=DragonflyReverb
-pkgver=3.2.8
+pkgname=(
+  dragonfly-reverb
+  dragonfly-reverb-{clap,lv2,standalone,vst,vst3}
+)
+pkgver=3.2.10
 pkgrel=1
 pkgdesc="A concert hall reverb and a room reverb"
 arch=(x86_64)
 url="https://michaelwillis.github.io/dragonfly-reverb/";
 license=(GPL3)
-makedepends=(freeverb3 gcc-libs glibc gendesk jack libglvnd libsamplerate 
libx11 libxext lv2)
+makedepends=(
+  freeverb3
+  gcc-libs
+  glibc
+  gendesk
+  jack
+  libglvnd
+  libsamplerate
+  libx11
+  libxext
+  lv2
+)
 checkdepends=(lv2lint)
-source=(https://github.com/michaelwillis/$pkgbase/releases/download/$pkgver/$pkgbase-$pkgver-source.tar.gz)
-sha512sums=('52780e0efc70d508a3856e4104879e3fcfbcac577192ad681cef702e682dc83d8336444f955890ff8a5dd73f9514eeb0bfb8031bd86e485da6d24aec3f30b77b')
-b2sums=('a50440220139e44f4da3e1a70814c3df42b176768c022b438d1af4bef24bc523ca59b9157de88dabb400773205b981b34c5d70bc78853a29d568ea11a7127c59')
-_names=(DragonflyEarlyReflections DragonflyHallReverb DragonflyPlateReverb 
DragonflyRoomReverb)
+source=(https://github.com/michaelwillis/$pkgbase/releases/download/$pkgver/$pkgbase-$pkgver-src.tar.xz)
+sha512sums=('772b70169970e5ec68270d3cfa690ad1b258a2df79430ecb36cae78654a761cb9b495a769daef37307af9960106c302df4d61094f95eb4f8619a0b764aa8d019')
+b2sums=('247a29af2070b191aa17c457ee333b090e17bec8abd82812cf980aad8b534006b8e3c3bfede8195d0729ee1319e7b145d79abd41b015f794e3d02e679b5a4bd6')
+_names=(
+  DragonflyEarlyReflections
+  DragonflyHallReverb
+  DragonflyPlateReverb
+  DragonflyRoomReverb
+)
 _common_depends=(
   gcc-libs
   glibc
-  libglvnd libGL.so
-  freeverb3 libfreeverb3.so
+  libglvnd
+  freeverb3
   libx11
   libxext
 )
@@ -38,7 +56,7 @@
     ["DragonflyRoomReverb"]="Room Reverb"
   )
 
-  cd $_name-Source-v$pkgver
+  cd $pkgbase-$pkgver
 
   # explicitly remove vendored freeverb as it causes issues: 
https://github.com/michaelwillis/dragonfly-reverb/issues/129
   rm -frv common/freeverb/
@@ -56,7 +74,7 @@
 
 build() {
   export SYSTEM_FREEVERB3="true"
-  make -C $_name-Source-v$pkgver
+  make -C $pkgbase-$pkgver
 }
 
 check() {
@@ -69,7 +87,7 @@
   )
 
   for _plugin_name in "${_names[@]}"; do
-    lv2lint -Mpack -s "lv2_generate_ttl" -I 
$_name-Source-v$pkgver/bin/$_plugin_name.lv2/ "${_urls[$_plugin_name]}"
+    lv2lint -Mpack -s "lv2_generate_ttl" -I 
$pkgbase-$pkgver/bin/$_plugin_name.lv2/ "${_urls[$_plugin_name]}"
   done
 }
 
@@ -79,45 +97,70 @@
 
 package_dragonfly-reverb-clap() {
   pkgdesc+=" - CLAP plugin"
-  depends=("${_common_depends[@]}" clap-host)
-  groups=(clap-plugins pro-audio)
+  depends=(
+    "${_common_depends[@]}"
+    clap-host
+  )
+  groups=(
+    clap-plugins
+    pro-audio
+  )
 
-  cd $_name-Source-v$pkgver
+  cd $pkgbase-$pkgver
   for name in "${_names[@]}"; do
     install -vDm 755 bin/$name.clap -t "$pkgdir/usr/lib/clap/"
   done
 }
 
-package_dragonfly-reverb-jack() {
-  pkgdesc+=" - JACK standalone"
-  depends=("${_common_depends[@]}" jack)
+package_dragonfly-reverb-lv2() {
+  pkgdesc+=" - LV2 plugin"
+  groups=(
+    lv2-plugins
+    pro-audio
+  )
+  depends=(
+    "${_common_depends[@]}"
+    lv2-host
+  )
 
-  cd $_name-Source-v$pkgver
+  cd $pkgbase-$pkgver
   for name in "${_names[@]}"; do
-    install -vDm 755 bin/$name -t "$pkgdir/usr/bin"
+    install -vDm 755 bin/$name.lv2/*.so -t "$pkgdir/usr/lib/lv2/$name.lv2/"
+    install -vDm 644 bin/$name.lv2/*.ttl -t "$pkgdir/usr/lib/lv2/$name.lv2/"
   done
-  install -vDm 644 *.desktop -t "$pkgdir/usr/share/applications/"
-  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
 }
 
-package_dragonfly-reverb-lv2() {
-  pkgdesc+=" - LV2 plugin"
-  depends=("${_common_depends[@]}" lv2-host)
-  groups=(lv2-plugins pro-audio)
+package_dragonfly-reverb-standalone() {
+  pkgdesc+=" - standalone"
+  groups=(
+    pro-audio
+  )
+  conflicts=(dragonfly-reverb-jack)
+  replaces=(dragonfly-reverb-jack)
+  depends=(
+    "${_common_depends[@]}"
+  )
 
-  cd $_name-Source-v$pkgver
+  cd $pkgbase-$pkgver
   for name in "${_names[@]}"; do
-    install -vDm 755 bin/$name.lv2/*.so -t "$pkgdir/usr/lib/lv2/$name.lv2/"
-    install -vDm 644 bin/$name.lv2/*.ttl -t "$pkgdir/usr/lib/lv2/$name.lv2/"
+    install -vDm 755 bin/$name -t "$pkgdir/usr/bin"
   done
+  install -vDm 644 ./*.desktop -t "$pkgdir/usr/share/applications/"
+  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
 }
 
 package_dragonfly-reverb-vst() {
   pkgdesc+=" - VST plugin"
-  depends=("${_common_depends[@]}" vst-host)
-  groups=(pro-audio vst-plugins)
+  groups=(
+    pro-audio
+    vst-plugins
+  )
+  depends=(
+    "${_common_depends[@]}"
+    vst-host
+  )
 
-  cd $_name-Source-v$pkgver
+  cd $pkgbase-$pkgver
   for name in "${_names[@]}"; do
     install -vDm 755 bin/$name-vst.so -t "$pkgdir/usr/lib/vst"
   done
@@ -125,10 +168,16 @@
 
 package_dragonfly-reverb-vst3() {
   pkgdesc+=" - VST3 plugin"
-  depends=("${_common_depends[@]}" vst3-host)
-  groups=(pro-audio vst3-plugins)
+  groups=(
+    pro-audio
+    vst3-plugins
+  )
+  depends=(
+    "${_common_depends[@]}"
+    vst3-host
+  )
 
-  cd $_name-Source-v$pkgver
+  cd $pkgbase-$pkgver
   for name in "${_names[@]}"; do
     install -vDm 755 bin/$name.vst3/Contents/$CARCH-linux/$name.so -t 
"$pkgdir/usr/lib/vst3/"
   done

Reply via email to