[arch-commits] Commit in distrho-ports/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Sun Jan 23 10:53:06 UTC 2022


    Date: Sunday, January 23, 2022 @ 10:53:05
  Author: dvzrv
Revision: 1113568

upgpkg: distrho-ports 2021.03.15-2: Rebuild to fix reproducibility.

Fix issues with call to meson (use arch-meson instead):
https://bugs.archlinux.org/task/73464
Simplify quoting in file.
Simplify calls to meson/ninja.

Modified:
  distrho-ports/trunk/PKGBUILD

----------+
 PKGBUILD |   99 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 46 insertions(+), 53 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-23 10:39:19 UTC (rev 1113567)
+++ PKGBUILD	2022-01-23 10:53:05 UTC (rev 1113568)
@@ -2,53 +2,43 @@
 
 pkgname=distrho-ports
 pkgver=2021.03.15
-pkgrel=1
+pkgrel=2
 pkgdesc="Linux audio plugins and LV2 ports"
-arch=('x86_64')
+arch=(x86_64)
 url="https://github.com/distrho/distrho-ports"
-license=('GPL2' 'LGPL3')
-groups=('lv2-plugins' 'pro-audio' 'vst-plugins' 'vst3-plugins')
-# NOTE: fftw is dlopen'd
-depends=('fftw' 'gcc-libs' 'glibc' 'libglvnd' 'libx11' 'libxext')
-makedepends=('alsa-lib' 'freetype2' 'git' 'libxcursor' 'lv2' 'meson')
-checkdepends=('kxstudio-lv2-extensions' 'lv2lint' 'xorg-server-xvfb')
-optdepends=('lv2-host: for LV2 plugins'
-            'vst-host: for VST plugins'
-            'vst3-host: for VST3 plugins')
+license=(GPL2 LGPL3)
+groups=(lv2-plugins pro-audio vst-plugins vst3-plugins)
+# NOTE: fftw is dlopend
+depends=(fftw gcc-libs glibc libglvnd libx11 libxext)
+makedepends=(alsa-lib freetype2 git libxcursor lv2 meson)
+checkdepends=(kxstudio-lv2-extensions lv2lint xorg-server-xvfb)
+optdepends=(
+  'lv2-host: for LV2 plugins'
+  'vst-host: for VST plugins'
+  'vst3-host: for VST3 plugins'
+)
 source=("git+https://github.com/DISTRHO/${pkgname}#tag=${pkgver//./-}?signed")
 md5sums=('SKIP')
 validpgpkeys=('62B11043D2F6EB6672D93103CDBAA37ABC74FBA0') # falkTX <falktx at falktx.com>
 
-prepare() {
-  cd "$pkgname"
-}
-
 build() {
-  cd "$pkgname"
-  meson --prefix='/usr' \
-        --buildtype plain \
-        --wrap-mode nodownload \
-        -D b_lto=true \
-        -D b_pie=true \
-        -Dintrospection=enabled \
-        build
+  arch-meson build "$pkgname"
   ninja -C build
 }
 
 check() {
   local _legacy_plugin _legacy_plugins _legacy_urls _plugins _urls _plugin
-  _plugins=('SwankyAmp' 'vitalium')
+  _plugins=(SwankyAmp vitalium)
   declare -A _urls=(
     ["SwankyAmp"]="urn:distrho:SwankyAmp"
     ["vitalium"]="urn:distrho:vitalium"
   )
-  _legacy_plugins=('Dexed' 'EasySSP' 'HiReSam' 'JuceOPL' 'KlangFalter'
-  'LUFSMeter' 'LUFSMeterMulti' 'Luftikus' 'Obxd' 'PitchedDelay' 'ReFine'
-  'StereoSourceSeparation' 'TAL-Dub-3' 'TAL-Filter-2' 'TAL-Filter'
-  'TAL-NoiseMaker' 'TAL-Reverb-2' 'TAL-Reverb-3' 'TAL-Reverb' 'TAL-Vocoder-2'
-  'Temper' 'TheFunction' 'ThePilgrim' 'Wolpertinger' 'drowaudio-distortion'
-  'drowaudio-distortionshaper' 'drowaudio-flanger' 'drowaudio-reverb'
-  'drowaudio-tremolo' 'drumsynth' 'eqinox' 'vex')
+  _legacy_plugins=(Dexed EasySSP HiReSam JuceOPL KlangFalter LUFSMeter
+  LUFSMeterMulti Luftikus Obxd PitchedDelay ReFine StereoSourceSeparation
+  TAL-Dub-3 TAL-Filter-2 TAL-Filter TAL-NoiseMaker TAL-Reverb-2 TAL-Reverb-3
+  TAL-Reverb TAL-Vocoder-2 Temper TheFunction ThePilgrim Wolpertinger
+  drowaudio-distortion drowaudio-distortionshaper drowaudio-flanger
+  drowaudio-reverb drowaudio-tremolo drumsynth eqinox vex)
   declare -A _legacy_urls=(
     ["Dexed"]="https://github.com/asb2m10/dexed"
     ["EasySSP"]="http://au.tomatl.org/essp"
@@ -83,30 +73,33 @@
     ["eqinox"]="urn:juced:EQinox"
     ["vex"]="urn:juce:Vex"
   )
-  cd "$pkgname"
-  echo "Linting plugins: ${_legacy_plugins[*]}"
-  for _legacy_plugin in "${_legacy_plugins[@]}"; do
-    echo "Linting ${_plugin}: ${_legacy_urls[${_legacy_plugin}]}"
-    if [ -n "${_legacy_urls[${_legacy_plugin}]}" ]; then
-      # ignore lv2_generate_ttl symbol as it can not be removed easily:
-      # https://github.com/DISTRHO/DISTRHO-Ports/issues/58
-      lv2lint -Mpack -s lv2_generate_ttl -I "build/ports-legacy/${_legacy_plugin}.lv2/" "${_legacy_urls[${_legacy_plugin}]}"
-    fi
-  done
-  for _plugin in "${_plugins[@]}"; do
-    echo "Linting ${_plugin}: ${_urls[${_plugin}]}"
-    if [ -n "${_urls[${_plugin}]}" ]; then
-      # ignore lv2_generate_ttl symbol as it can not be removed easily:
-      # https://github.com/DISTRHO/DISTRHO-Ports/issues/58
-      xvfb-run lv2lint -Mpack -s lv2_generate_ttl -I "build/ports/${_plugin}.lv2/" "${_urls[${_plugin}]}" || echo "xvfb-run is too dumb to kill itself"
-    fi
-  done
-  ninja -C build test
+
+  (
+    echo "Linting plugins: ${_legacy_plugins[*]}"
+    for _legacy_plugin in "${_legacy_plugins[@]}"; do
+      echo "Linting ${_plugin}: ${_legacy_urls[${_legacy_plugin}]}"
+      if [ -n "${_legacy_urls[${_legacy_plugin}]}" ]; then
+        # ignore lv2_generate_ttl symbol as it can not be removed easily:
+        # https://github.com/DISTRHO/DISTRHO-Ports/issues/58
+        lv2lint -Mpack -s lv2_generate_ttl -I "build/ports-legacy/${_legacy_plugin}.lv2/" "${_legacy_urls[${_legacy_plugin}]}"
+      fi
+    done
+    for _plugin in "${_plugins[@]}"; do
+      echo "Linting ${_plugin}: ${_urls[${_plugin}]}"
+      if [ -n "${_urls[${_plugin}]}" ]; then
+        # ignore lv2_generate_ttl symbol as it can not be removed easily:
+        # https://github.com/DISTRHO/DISTRHO-Ports/issues/58
+        xvfb-run lv2lint -Mpack -s lv2_generate_ttl -I "build/ports/${_plugin}.lv2/" "${_urls[${_plugin}]}" || echo "xvfb-run is too dumb to kill itself"
+      fi
+    done
+  )
+
+  ninja test -C build
 }
 
 package() {
-  depends+=('libasound.so' 'libfftw3f.so' 'libfreetype.so')
-  cd "$pkgname"
+  depends+=(libasound.so libfftw3f.so libfreetype.so)
+
   DESTDIR="${pkgdir}" meson install -C build
-  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 "$pkgname/"README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
 }



More information about the arch-commits mailing list