[arch-commits] Commit in x42-plugins/repos/community-x86_64 (8 files)

David Runge dvzrv at archlinux.org
Fri Jul 24 15:38:09 UTC 2020


    Date: Friday, July 24, 2020 @ 15:38:08
  Author: dvzrv
Revision: 665164

archrelease: copy trunk to community-x86_64

Added:
  x42-plugins/repos/community-x86_64/PKGBUILD
    (from rev 665163, x42-plugins/trunk/PKGBUILD)
  x42-plugins/repos/community-x86_64/x42-plugins-20200714-meters_surround8.patch
    (from rev 665163, x42-plugins/trunk/x42-plugins-20200714-meters_surround8.patch)
  x42-plugins/repos/community-x86_64/x42-plugins.directory
    (from rev 665163, x42-plugins/trunk/x42-plugins.directory)
  x42-plugins/repos/community-x86_64/x42-plugins.menu
    (from rev 665163, x42-plugins/trunk/x42-plugins.menu)
Deleted:
  x42-plugins/repos/community-x86_64/PKGBUILD
  x42-plugins/repos/community-x86_64/x42-plugins-20200714-meters_surround8.patch
  x42-plugins/repos/community-x86_64/x42-plugins.directory
  x42-plugins/repos/community-x86_64/x42-plugins.menu

---------------------------------------------+
 PKGBUILD                                    |  552 +++++++++++++-------------
 x42-plugins-20200714-meters_surround8.patch |  116 ++---
 x42-plugins.directory                       |   10 
 x42-plugins.menu                            |   88 ++--
 4 files changed, 385 insertions(+), 381 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-24 15:37:57 UTC (rev 665163)
+++ PKGBUILD	2020-07-24 15:38:08 UTC (rev 665164)
@@ -1,274 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# Contributor: Lieven Moors <lievenmoors at gmail.com>
-
-pkgname=x42-plugins
-pkgver=20200714
-pkgrel=1
-pkgdesc="Collection of LV2 plugins"
-arch=('x86_64')
-url="https://github.com/x42/x42-plugins"
-license=('GPL2' 'GPL3')
-groups=('lv2-plugins' 'pro-audio')
-depends=('cairo' 'ftgl' 'gcc-libs' 'glibc' 'hicolor-icon-theme' 'libglvnd'
-'libx11')
-makedepends=('fftw' 'gendesk' 'glib2' 'help2man' 'jack' 'liblo' 'libltc'
-'libsamplerate' 'libsndfile' 'lv2' 'pango' 'ttf-dejavu' 'zita-convolver')
-# NOTE: adding moony.lv2 as a stop-gap solution until kxstudio-lv2-extensions
-# can be packaged to provide the required extensions for the meters plugin
-# during check()
-checkdepends=('lv2lint' 'moony.lv2')
-optdepends=('jack: for standalone applications'
-            'liblo: for standalone applications')
-source=("http://gareus.org/misc/${pkgname}/${pkgname}-${pkgver}.tar.xz"
-        "${pkgname}-20200714-meters_surround8.patch"
-        "${pkgname}.png::https://x42-plugins.com/x42/static/img/x42.png"
-        "${pkgname}.directory"
-        "${pkgname}.menu")
-sha512sums=('5ec4ec5f79803b49dda46b209b94eca292e428708a9eead2c8221e2ca7eef5761f229354a44e014e32264816e93d469578e6348ab3e7e5442b931bda3fb13ae7'
-            '78bac02778f357b9c9e8ebcb10740658d8d95e11e3e4b7bbce1f1abda57e40b3fce1010725ab73da4e5299d6b6ed7d4a551c169ea445ef6ceec3f0f7b0b7748b'
-            '956fdd8e04c846d06a5267d1748916744418e0ddfce0ac2e9dd3a1c1376aea61499177af80709d9fe78f8c0c2ddcbf9f9e5b2e413adc9a7eca9b648a87ad4860'
-            'fef75b22b2c1fed8586af4dfd01ea291a7c1506e80ce384f05f13dc04c4b7e3e934003c20d89ae94f36ad1021b7ad75097da836ca30ee965b4107b559305b496'
-            '411015b0feb8a289272cb821afa7e2a284d3e9d994a446baa73b3a6ce0f0ebd1e94c4cb3392a0afb1d741ce6d8b2d14c9bd124a0684b830275b4ba8e14680aa3')
-b2sums=('8979136756ec374e565b023c5a3e6af6c4bb3e00810d6070ee8bb34f1142efdf4e90f820c2fd1ea21fcf1b6035156f5cfe8bbcb8a9724efebcbf2456c000449e'
-        'f0d9c97beea8952c81087e14db45bdc679226dc7e5eafe6899a30c9cd277af3daeb012ab228ed16e200b7e4787a9332e53f82874dc2d8881e1ca2881848ef92a'
-        '35a8cfcdf7f8c57ba655049a6d75b3bf9d253c25702a3f191d3f6cab215887f7de5025d025993861ae88c1b4daae132e9cc1ddf083e5b822f1b53a683c0fcaa3'
-        'fb6557cd2e8b83dae1cb38503f2a72093085ddcc0a4ba2e5e0375f7063b83b3fb4180091ce10524cd336eeb33cffed45ada93055b960c9189f83d664216b33ee'
-        '9c695f58099fcbfdce3e693e491d851ff7894a650ea12e079894176ef054b5f592785467c286bd8feaa340fdcdfb53d930b3a44ea890112e3fc1a4d172beb243')
-
-_names=('darc' 'dpl' 'fat1' 'fil4' 'matrixmixer8x8' 'meter' 'mixtri' 'scope' 'spectr' 'stepseq' 'tuna')
-
-prepare() {
-  cd "${pkgname}-${pkgver}"
-
-  (
-    cd meters.lv2
-    # fixing linting issue with surround8 variant of meters plugin
-    # https://github.com/x42/meters.lv2/issues/28
-    patch -Np1 -i "$srcdir/${pkgname}-20200714-meters_surround8.patch"
-  )
-
-  declare -A comments=(
-    ["darc"]="A general purpose audio signal compressor"
-    ["dpl"]="Look-ahead digital peak limiter intended but not limited to the final step of mastering or mixing"
-    ["fat1"]="Auto-tuner based on Fons Adriaensen's zita-at1"
-    ["fil4"]="4 band parametric equalizer with additional low+high shelf filters, Low and High-pass"
-    ["matrixmixer8x8"]="Matrix Mixer 8x8"
-    ["mixtri"]="Matrix mixer and trigger processor"
-    ["scope"]="Simple audio oscilloscope with variable time scale, triggering, cursors and numeric readout"
-    ["spectr"]="Spectrum Analyzer"
-    ["stepseq"]="Simple step sequencer for moddevices.com"
-  )
-  declare -A generic=(
-    ["darc"]="Dynamic Audio Range Compressor"
-    ["dpl"]="Peak Limiter"
-    ["fat1"]="Auto Tune"
-    ["fil4"]="Parametric Equalizer"
-    ["matrixmixer8x8"]="Matrix Mixer"
-    ["mixtri"]="Mixer'n'Trigger"
-    ["scope"]="Oscilloscope"
-    ["spectr"]="Spectrum Analyzer"
-    ["stepseq"]="Step Sequencer"
-  )
-  declare -A meter_types=(
-    [0]='EBU R128 Meter'
-    [1]='K20/RMS Meter (Stereo)'
-    [2]='K14/RMS Meter (Stereo)'
-    [3]='K12/RMS Meter (Stereo)'
-    [4]='BBC Meter (Stereo)'
-    [5]='BBC M-6'
-    [6]='DIN Meter (Stereo)'
-    [7]='EBU Meter (Stereo)'
-    [8]='Nordic Meter (Stereo)'
-    [9]='VU Meter (Stereo)'
-    [10]='True-Peak and RMS Meter (Stereo)'
-    [11]='DR-14 - Crest Factor Loudness Range Meter'
-    [12]='Stereo Phase-Correlation Meter'
-    [13]='Goniometer'
-    [14]='Phase/Frequency Wheel'
-    [15]='1/3 Octave Spectrum Analyzer'
-    [16]='Stereo/Frequency Scope'
-    [17]='Signal Distribution Histogram'
-    [18]='Bit Meter'
-    [19]='Surround Level 8'
-  )
-  declare -A tuna_types=(
-    [0]='Instrument Tuner'
-    [1]='Instrument Tuner (Spectrum)'
-  )
-
-  # XDG desktop files
-  for name in "${_names[@]}"; do
-    case "$name" in
-      meter)
-        for type in {0..19}; do
-          gendesk -n \
-                  --pkgname "com.x42_plugins.x42_meter_${type}" \
-                  --name "x42-meter ${meter_types[$type]}" \
-                  --pkgdesc "${meter_types[$type]}" \
-                  --exec "x42-meter $type" \
-                  --icon "x42-meter" \
-                  --genericname "Audio Meter"
-        done
-        ;;
-      tuna)
-        for type in {0,1}; do
-          gendesk -n \
-                  --pkgname "com.x42_plugins.x42_${name}_${type}" \
-                  --name "x42-${name} ${tuna_types[$type]}" \
-                  --pkgdesc "${tuna_types[$type]}" \
-                  --exec "x42-${name} $type" \
-                  --icon "x42-${name}" \
-                  --genericname "Music Instrument Tuner"
-        done
-        ;;
-      *)
-        gendesk -n \
-                --pkgname "com.x42_plugins.x42_${name}" \
-                --name "x42-${name}" \
-                --pkgdesc "${comments[$name]}" \
-                --genericname "${generic[$name]}"
-        ;;
-    esac
-  done
-  # moving images to correct location so installation is not such a hassle later on
-  mv -v fat1.lv2/img/x42{_,-}fat1.png
-  mv -v mixtri.lv2/img/x42{_,-}mixtri.png
-  mv -v meters.lv2/img/x42-meter{s,}.png
-  mv -v matrixmixer.lv2/img/x42-matrixmixer{,8x8}.png
-}
-
-build() {
-  cd "${pkgname}-${pkgver}"
-  # replace ttf-freefont with ttf-liberation
-  export FONTFILE=/usr/share/fonts/TTF/DejaVuSans-Bold.ttf
-  make
-}
-
-check() {
-  local _name _version _convolver _controlfilter _default _meter _midifilter _onsettrigger _sisco _tuna
-  local _controlfilters=('exp' 'invert' 'linearscale' 'lowpass' 'nlog')
-  local _convolvers=('Mono' 'MonoToStereo' 'Stereo')
-  local _defaults=('mono' 'stereo')
-  local _meters=('VUmono' 'VUstereo' 'BBCmono' 'BBCstereo' 'BBCM6' 'EBUmono'
-  'EBUstereo' 'DINmono' 'DINstereo' 'NORmono' 'NORstereo' 'COR' 'EBUr128'
-  'goniometer' 'spectr30mono' 'spectr30stereo' 'dBTPmono' 'dBTPstereo'
-  'K12mono' 'K12stereo' 'K14mono' 'K14stereo' 'K20mono' 'K20stereo'
-  'phasewheel' 'stereoscope' 'dr14mono' 'dr14stereo' 'TPnRMSmono'
-  'TPnRMSstereo' 'SigDistHist' 'bitmeter' 'surround8' 'surround5' 'surround4'
-  'surround3')
-  local _midifilters=('cctonote' 'channelfilter' 'channelmap' 'chokefilter'
-  'enforcescale' 'eventblocker' 'keyrange' 'keysplit' 'mapcc' 'mapkeychannel'
-  'mapkeyscale' 'midichord' 'mididelay' 'mididup' 'midistrum' 'miditranspose'
-  'monolegato' 'noactivesensing' 'nodup' 'notetocc' 'notetoggle' 'ntapdelay'
-  'onechannelfilter' 'passthru' 'quantize' 'randvelocity' 'scalecc' 'sostenuto'
-  'velocitygamma' 'velocityrange' 'velocityscale')
-  local _onsettriggers=('bassdrum_mono' 'bassdrum_stereo')
-  local _siscos=('Mono' 'Stereo' '3chan' '4chan')
-  local _tunas=('one' 'two')
-
-  cd "${pkgname}-${pkgver}"
-
-  while IFS=" " read -r _name _version; do
-    echo "lv2lint test for ${_name} ${_version}"
-    case "$_name" in
-      controlfilter.lv2 )
-        for _controlfilter in "${_controlfilters[@]}"; do
-          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_controlfilter}"
-        done
-        ;;
-      convoLV2 )
-        for _convolver in "${_convolvers[@]}"; do
-          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name}#${_convolver}"
-        done
-        ;;
-      darc.lv2|dpl.lv2|fil4.lv2 )
-        for _default in "${_defaults[@]}"; do
-          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_default}"
-        done
-        ;;
-      matrixmixer.lv2 )
-        lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#i8o8"
-        ;;
-      meters.lv2 )
-        for _meter in "${_meters[@]}"; do
-          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_meter}"
-        done
-        ;;
-      midifilter.lv2 )
-        for _midifilter in "${_midifilters[@]}"; do
-          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_midifilter}"
-        done
-        ;;
-      mixtri.lv2 )
-        lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#lv2"
-        ;;
-      onsettrigger.lv2 )
-        for _onsettrigger in "${_onsettriggers[@]}"; do
-          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_onsettrigger}"
-        done
-        ;;
-      sisco.lv2 )
-        for _sisco in "${_siscos[@]}"; do
-          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_sisco}"
-        done
-        ;;
-      spectra.lv2 )
-        lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#Mono"
-        ;;
-      stepseq.lv2 )
-        lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#s8n8"
-        ;;
-      tuna.lv2 )
-        for _tuna in "${_tunas[@]}"; do
-          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_tuna}"
-        done
-        ;;
-      robtk )
-        echo "Toolkit. Skipping..."
-        ;;
-      * )
-        lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}"
-        ;;
-    esac
-  done < plugin.versions
-}
-
-package() {
-  depends+=('libfftw3f.so' 'libgobject-2.0.so' 'libltc.so' 'libpango-1.0.so'
-  'libpangocairo-1.0.so' 'libsamplerate.so' 'libsndfile.so'
-  'libzita-convolver.so')
-  declare -A _dirs=(
-      ["darc"]="darc.lv2"
-      ["dpl"]="dpl.lv2"
-      ["fat1"]="fat1.lv2"
-      ["fil4"]="fil4.lv2"
-      ["matrixmixer8x8"]="matrixmixer.lv2"
-      ["meter"]="meters.lv2"
-      ["mixtri"]="mixtri.lv2"
-      ["scope"]="sisco.lv2"
-      ["spectr"]="spectra.lv2"
-      ["stepseq"]="stepseq.lv2"
-      ["tuna"]="tuna.lv2"
-  )
-  cd "${pkgname}-${pkgver}"
-  make install DESTDIR="$pkgdir/" PREFIX=/usr
-  # xdg desktop integration
-  install -vDm 644 ./*.desktop -t "${pkgdir}/usr/share/applications/"
-  # icons
-  for name in "${_names[@]}"; do
-    if [[ "$name" != 'fil4' ]]; then
-      install -vDm 644 "${_dirs[$name]}/img/x42-${name}.png" \
-        -t "${pkgdir}/usr/share/icons/hicolor/256x256/apps/"
-    fi
-  done
-  install -vDm 644 "../${pkgname}.png" \
-    -t "${pkgdir}/usr/share/icons/hicolor/256x256/apps/"
-  # menu integration
-  install -vDm 644 "../${pkgname}.menu" \
-    -t "${pkgdir}/etc/xdg/menus/applications-merged/"
-  install -vDm 644 "../${pkgname}.directory" \
-    -t "${pkgdir}/usr/share/desktop-directories/"
-  install -vDm 644 plugin.news \
-    -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
-# vim:set ts=2 sw=2 et:

Copied: x42-plugins/repos/community-x86_64/PKGBUILD (from rev 665163, x42-plugins/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-24 15:38:08 UTC (rev 665164)
@@ -0,0 +1,278 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Lieven Moors <lievenmoors at gmail.com>
+
+pkgname=x42-plugins
+pkgver=20200714
+pkgrel=2
+pkgdesc="Collection of LV2 plugins"
+arch=('x86_64')
+url="https://github.com/x42/x42-plugins"
+license=('GPL2' 'GPL3')
+groups=('lv2-plugins' 'pro-audio')
+depends=('cairo' 'ftgl' 'gcc-libs' 'glibc' 'hicolor-icon-theme' 'libglvnd'
+'libx11')
+makedepends=('fftw' 'gendesk' 'glib2' 'help2man' 'jack' 'liblo' 'libltc'
+'libsamplerate' 'libsndfile' 'lv2' 'pango' 'ttf-dejavu' 'zita-convolver')
+# NOTE: requires kxstudio-lv2-extensions to be packaged to provide the required
+# extensions for the meters and mixtri plugin during check()
+# https://github.com/KXStudio/LV2-Extensions/issues/1
+checkdepends=('lv2lint')
+optdepends=('jack: for standalone applications'
+            'liblo: for standalone applications')
+source=("http://gareus.org/misc/${pkgname}/${pkgname}-${pkgver}.tar.xz"
+        "${pkgname}-20200714-meters_surround8.patch"
+        "${pkgname}.png::https://x42-plugins.com/x42/static/img/x42.png"
+        "${pkgname}.directory"
+        "${pkgname}.menu")
+sha512sums=('5ec4ec5f79803b49dda46b209b94eca292e428708a9eead2c8221e2ca7eef5761f229354a44e014e32264816e93d469578e6348ab3e7e5442b931bda3fb13ae7'
+            '78bac02778f357b9c9e8ebcb10740658d8d95e11e3e4b7bbce1f1abda57e40b3fce1010725ab73da4e5299d6b6ed7d4a551c169ea445ef6ceec3f0f7b0b7748b'
+            '956fdd8e04c846d06a5267d1748916744418e0ddfce0ac2e9dd3a1c1376aea61499177af80709d9fe78f8c0c2ddcbf9f9e5b2e413adc9a7eca9b648a87ad4860'
+            'fef75b22b2c1fed8586af4dfd01ea291a7c1506e80ce384f05f13dc04c4b7e3e934003c20d89ae94f36ad1021b7ad75097da836ca30ee965b4107b559305b496'
+            '411015b0feb8a289272cb821afa7e2a284d3e9d994a446baa73b3a6ce0f0ebd1e94c4cb3392a0afb1d741ce6d8b2d14c9bd124a0684b830275b4ba8e14680aa3')
+b2sums=('8979136756ec374e565b023c5a3e6af6c4bb3e00810d6070ee8bb34f1142efdf4e90f820c2fd1ea21fcf1b6035156f5cfe8bbcb8a9724efebcbf2456c000449e'
+        'f0d9c97beea8952c81087e14db45bdc679226dc7e5eafe6899a30c9cd277af3daeb012ab228ed16e200b7e4787a9332e53f82874dc2d8881e1ca2881848ef92a'
+        '35a8cfcdf7f8c57ba655049a6d75b3bf9d253c25702a3f191d3f6cab215887f7de5025d025993861ae88c1b4daae132e9cc1ddf083e5b822f1b53a683c0fcaa3'
+        'fb6557cd2e8b83dae1cb38503f2a72093085ddcc0a4ba2e5e0375f7063b83b3fb4180091ce10524cd336eeb33cffed45ada93055b960c9189f83d664216b33ee'
+        '9c695f58099fcbfdce3e693e491d851ff7894a650ea12e079894176ef054b5f592785467c286bd8feaa340fdcdfb53d930b3a44ea890112e3fc1a4d172beb243')
+
+_names=('darc' 'dpl' 'fat1' 'fil4' 'matrixmixer8x8' 'meter' 'mixtri' 'scope' 'spectr' 'stepseq' 'tuna')
+
+prepare() {
+  cd "${pkgname}-${pkgver}"
+
+  (
+    cd meters.lv2
+    # fixing linting issue with surround8 variant of meters plugin
+    # https://github.com/x42/meters.lv2/issues/28
+    patch -Np1 -i "$srcdir/${pkgname}-20200714-meters_surround8.patch"
+  )
+
+  declare -A comments=(
+    ["darc"]="A general purpose audio signal compressor"
+    ["dpl"]="Look-ahead digital peak limiter intended but not limited to the final step of mastering or mixing"
+    ["fat1"]="Auto-tuner based on Fons Adriaensen's zita-at1"
+    ["fil4"]="4 band parametric equalizer with additional low+high shelf filters, Low and High-pass"
+    ["matrixmixer8x8"]="Matrix Mixer 8x8"
+    ["mixtri"]="Matrix mixer and trigger processor"
+    ["scope"]="Simple audio oscilloscope with variable time scale, triggering, cursors and numeric readout"
+    ["spectr"]="Spectrum Analyzer"
+    ["stepseq"]="Simple step sequencer for moddevices.com"
+  )
+  declare -A generic=(
+    ["darc"]="Dynamic Audio Range Compressor"
+    ["dpl"]="Peak Limiter"
+    ["fat1"]="Auto Tune"
+    ["fil4"]="Parametric Equalizer"
+    ["matrixmixer8x8"]="Matrix Mixer"
+    ["mixtri"]="Mixer'n'Trigger"
+    ["scope"]="Oscilloscope"
+    ["spectr"]="Spectrum Analyzer"
+    ["stepseq"]="Step Sequencer"
+  )
+  declare -A meter_types=(
+    [0]='EBU R128 Meter'
+    [1]='K20/RMS Meter (Stereo)'
+    [2]='K14/RMS Meter (Stereo)'
+    [3]='K12/RMS Meter (Stereo)'
+    [4]='BBC Meter (Stereo)'
+    [5]='BBC M-6'
+    [6]='DIN Meter (Stereo)'
+    [7]='EBU Meter (Stereo)'
+    [8]='Nordic Meter (Stereo)'
+    [9]='VU Meter (Stereo)'
+    [10]='True-Peak and RMS Meter (Stereo)'
+    [11]='DR-14 - Crest Factor Loudness Range Meter'
+    [12]='Stereo Phase-Correlation Meter'
+    [13]='Goniometer'
+    [14]='Phase/Frequency Wheel'
+    [15]='1/3 Octave Spectrum Analyzer'
+    [16]='Stereo/Frequency Scope'
+    [17]='Signal Distribution Histogram'
+    [18]='Bit Meter'
+    [19]='Surround Level 8'
+  )
+  declare -A tuna_types=(
+    [0]='Instrument Tuner'
+    [1]='Instrument Tuner (Spectrum)'
+  )
+
+  # XDG desktop files
+  for name in "${_names[@]}"; do
+    case "$name" in
+      meter)
+        for type in {0..19}; do
+          gendesk -n \
+                  --pkgname "com.x42_plugins.x42_meter_${type}" \
+                  --name "x42-meter ${meter_types[$type]}" \
+                  --pkgdesc "${meter_types[$type]}" \
+                  --exec "x42-meter $type" \
+                  --icon "x42-meter" \
+                  --genericname "Audio Meter"
+        done
+        ;;
+      tuna)
+        for type in {0,1}; do
+          gendesk -n \
+                  --pkgname "com.x42_plugins.x42_${name}_${type}" \
+                  --name "x42-${name} ${tuna_types[$type]}" \
+                  --pkgdesc "${tuna_types[$type]}" \
+                  --exec "x42-${name} $type" \
+                  --icon "x42-${name}" \
+                  --genericname "Music Instrument Tuner"
+        done
+        ;;
+      *)
+        gendesk -n \
+                --pkgname "com.x42_plugins.x42_${name}" \
+                --name "x42-${name}" \
+                --pkgdesc "${comments[$name]}" \
+                --exec "x42-${name}" \
+                --icon "x42-${name}" \
+                --genericname "${generic[$name]}"
+        ;;
+    esac
+  done
+  # moving images to correct location so installation is not such a hassle later on
+  mv -v fat1.lv2/img/x42{_,-}fat1.png
+  mv -v mixtri.lv2/img/x42{_,-}mixtri.png
+  mv -v meters.lv2/img/x42-meter{s,}.png
+  mv -v matrixmixer.lv2/img/x42-matrixmixer{,8x8}.png
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  # replace ttf-freefont with ttf-liberation
+  export FONTFILE=/usr/share/fonts/TTF/DejaVuSans-Bold.ttf
+  make
+}
+
+check() {
+  local _name _version _convolver _controlfilter _default _meter _midifilter _onsettrigger _sisco _tuna
+  local _controlfilters=('exp' 'invert' 'linearscale' 'lowpass' 'nlog')
+  local _convolvers=('Mono' 'MonoToStereo' 'Stereo')
+  local _defaults=('mono' 'stereo')
+  local _meters=('VUmono' 'VUstereo' 'BBCmono' 'BBCstereo' 'BBCM6' 'EBUmono'
+  'EBUstereo' 'DINmono' 'DINstereo' 'NORmono' 'NORstereo' 'COR' 'EBUr128'
+  'goniometer' 'spectr30mono' 'spectr30stereo' 'dBTPmono' 'dBTPstereo'
+  'K12mono' 'K12stereo' 'K14mono' 'K14stereo' 'K20mono' 'K20stereo'
+  'phasewheel' 'stereoscope' 'dr14mono' 'dr14stereo' 'TPnRMSmono'
+  'TPnRMSstereo' 'SigDistHist' 'bitmeter' 'surround8' 'surround5' 'surround4'
+  'surround3')
+  local _midifilters=('cctonote' 'channelfilter' 'channelmap' 'chokefilter'
+  'enforcescale' 'eventblocker' 'keyrange' 'keysplit' 'mapcc' 'mapkeychannel'
+  'mapkeyscale' 'midichord' 'mididelay' 'mididup' 'midistrum' 'miditranspose'
+  'monolegato' 'noactivesensing' 'nodup' 'notetocc' 'notetoggle' 'ntapdelay'
+  'onechannelfilter' 'passthru' 'quantize' 'randvelocity' 'scalecc' 'sostenuto'
+  'velocitygamma' 'velocityrange' 'velocityscale')
+  local _onsettriggers=('bassdrum_mono' 'bassdrum_stereo')
+  local _siscos=('Mono' 'Stereo' '3chan' '4chan')
+  local _tunas=('one' 'two')
+
+  cd "${pkgname}-${pkgver}"
+
+  while IFS=" " read -r _name _version; do
+    echo "lv2lint test for ${_name} ${_version}"
+    case "$_name" in
+      controlfilter.lv2 )
+        for _controlfilter in "${_controlfilters[@]}"; do
+          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_controlfilter}"
+        done
+        ;;
+      convoLV2 )
+        for _convolver in "${_convolvers[@]}"; do
+          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name}#${_convolver}"
+        done
+        ;;
+      darc.lv2|dpl.lv2|fil4.lv2 )
+        for _default in "${_defaults[@]}"; do
+          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_default}"
+        done
+        ;;
+      matrixmixer.lv2 )
+        lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#i8o8"
+        ;;
+      meters.lv2 )
+        for _meter in "${_meters[@]}"; do
+          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_meter}" \
+            || echo "Requires packaged extensions: https://github.com/KXStudio/LV2-Extensions"
+        done
+        ;;
+      midifilter.lv2 )
+        for _midifilter in "${_midifilters[@]}"; do
+          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_midifilter}"
+        done
+        ;;
+      mixtri.lv2 )
+        lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#lv2" \
+            || echo "Requires packaged extensions: https://github.com/KXStudio/LV2-Extensions"
+        ;;
+      onsettrigger.lv2 )
+        for _onsettrigger in "${_onsettriggers[@]}"; do
+          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_onsettrigger}"
+        done
+        ;;
+      sisco.lv2 )
+        for _sisco in "${_siscos[@]}"; do
+          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_sisco}"
+        done
+        ;;
+      spectra.lv2 )
+        lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#Mono"
+        ;;
+      stepseq.lv2 )
+        lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#s8n8"
+        ;;
+      tuna.lv2 )
+        for _tuna in "${_tunas[@]}"; do
+          lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}#${_tuna}"
+        done
+        ;;
+      robtk )
+        echo "Toolkit. Skipping..."
+        ;;
+      * )
+        lv2lint -Mpack -I "${_name}/build" "http://gareus.org/oss/lv2/${_name//.lv2/}"
+        ;;
+    esac
+  done < plugin.versions
+}
+
+package() {
+  depends+=('libfftw3f.so' 'libgobject-2.0.so' 'libltc.so' 'libpango-1.0.so'
+  'libpangocairo-1.0.so' 'libsamplerate.so' 'libsndfile.so'
+  'libzita-convolver.so')
+  declare -A _dirs=(
+      ["darc"]="darc.lv2"
+      ["dpl"]="dpl.lv2"
+      ["fat1"]="fat1.lv2"
+      ["fil4"]="fil4.lv2"
+      ["matrixmixer8x8"]="matrixmixer.lv2"
+      ["meter"]="meters.lv2"
+      ["mixtri"]="mixtri.lv2"
+      ["scope"]="sisco.lv2"
+      ["spectr"]="spectra.lv2"
+      ["stepseq"]="stepseq.lv2"
+      ["tuna"]="tuna.lv2"
+  )
+  cd "${pkgname}-${pkgver}"
+  make install DESTDIR="$pkgdir/" PREFIX=/usr
+  # xdg desktop integration
+  install -vDm 644 ./*.desktop -t "${pkgdir}/usr/share/applications/"
+  # icons
+  for name in "${_names[@]}"; do
+    if [[ "$name" != 'fil4' ]]; then
+      install -vDm 644 "${_dirs[$name]}/img/x42-${name}.png" \
+        -t "${pkgdir}/usr/share/icons/hicolor/256x256/apps/"
+    fi
+  done
+  install -vDm 644 "../${pkgname}.png" \
+    -t "${pkgdir}/usr/share/icons/hicolor/256x256/apps/"
+  # menu integration
+  install -vDm 644 "../${pkgname}.menu" \
+    -t "${pkgdir}/etc/xdg/menus/applications-merged/"
+  install -vDm 644 "../${pkgname}.directory" \
+    -t "${pkgdir}/usr/share/desktop-directories/"
+  install -vDm 644 plugin.news \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+# vim:set ts=2 sw=2 et:

Deleted: x42-plugins-20200714-meters_surround8.patch
===================================================================
--- x42-plugins-20200714-meters_surround8.patch	2020-07-24 15:37:57 UTC (rev 665163)
+++ x42-plugins-20200714-meters_surround8.patch	2020-07-24 15:38:08 UTC (rev 665164)
@@ -1,58 +0,0 @@
-From 86c35e31c3e8e3e2b8a6ddf38a68e1145715a79c Mon Sep 17 00:00:00 2001
-From: Robin Gareus <robin at gareus.org>
-Date: Tue, 14 Jul 2020 22:01:51 +0200
-Subject: [PATCH] Fix surround-meter LV2 port symbol uniqueness
-
----
- lv2ttl/meters.lv2.ttl.in | 2 +-
- lv2ttl/surmeter.h        | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/lv2ttl/meters.lv2.ttl.in b/lv2ttl/meters.lv2.ttl.in
-index 0afc651..dc5bbd0 100644
---- a/lv2ttl/meters.lv2.ttl.in
-+++ b/lv2ttl/meters.lv2.ttl.in
-@@ -3629,7 +3629,7 @@ mtr:surround8 at URI_SUFFIX@
- 		a lv2:ControlPort ,
- 			lv2:OutputPort ;
- 		lv2:index 24 ;
--		lv2:symbol "peak4" ;
-+		lv2:symbol "peak3" ;
- 		lv2:name "Peak 4" ;
- 		lv2:minimum 0.0 ;
- 		lv2:maximum 1.0 ;
-diff --git a/lv2ttl/surmeter.h b/lv2ttl/surmeter.h
-index f7b0ca8..062468b 100644
---- a/lv2ttl/surmeter.h
-+++ b/lv2ttl/surmeter.h
-@@ -36,7 +36,7 @@ static const RtkLv2Description _plugin_surmeter = {
- 		{ "in3", AUDIO_IN, nan, nan, nan, "In3"},
- 		{ "out3", AUDIO_OUT, nan, nan, nan, "Out3"},
- 		{ "rms3", CONTROL_OUT, nan, 0.000000, 1.000000, "RMS 3"},
--		{ "peak4", CONTROL_OUT, nan, 0.000000, 1.000000, "Peak 4"},
-+		{ "peak3", CONTROL_OUT, nan, 0.000000, 1.000000, "Peak 3"},
- 		{ "in4", AUDIO_IN, nan, nan, nan, "In4"},
- 		{ "out4", AUDIO_OUT, nan, nan, nan, "Out4"},
- 		{ "rms4", CONTROL_OUT, nan, 0.000000, 1.000000, "RMS 4"},
-From f0c35ee97267988b3a38c5851c5fa0761005bfc4 Mon Sep 17 00:00:00 2001
-From: Robin Gareus <robin at gareus.org>
-Date: Tue, 14 Jul 2020 22:43:57 +0200
-Subject: [PATCH] Amend 86c35e31c3e, update lv2:name to match symbol name
-
----
- lv2ttl/meters.lv2.ttl.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/lv2ttl/meters.lv2.ttl.in b/lv2ttl/meters.lv2.ttl.in
-index dc5bbd0..7b2c6c6 100644
---- a/lv2ttl/meters.lv2.ttl.in
-+++ b/lv2ttl/meters.lv2.ttl.in
-@@ -3630,7 +3630,7 @@ mtr:surround8 at URI_SUFFIX@
- 			lv2:OutputPort ;
- 		lv2:index 24 ;
- 		lv2:symbol "peak3" ;
--		lv2:name "Peak 4" ;
-+		lv2:name "Peak 3" ;
- 		lv2:minimum 0.0 ;
- 		lv2:maximum 1.0 ;
- 	] , [

Copied: x42-plugins/repos/community-x86_64/x42-plugins-20200714-meters_surround8.patch (from rev 665163, x42-plugins/trunk/x42-plugins-20200714-meters_surround8.patch)
===================================================================
--- x42-plugins-20200714-meters_surround8.patch	                        (rev 0)
+++ x42-plugins-20200714-meters_surround8.patch	2020-07-24 15:38:08 UTC (rev 665164)
@@ -0,0 +1,58 @@
+From 86c35e31c3e8e3e2b8a6ddf38a68e1145715a79c Mon Sep 17 00:00:00 2001
+From: Robin Gareus <robin at gareus.org>
+Date: Tue, 14 Jul 2020 22:01:51 +0200
+Subject: [PATCH] Fix surround-meter LV2 port symbol uniqueness
+
+---
+ lv2ttl/meters.lv2.ttl.in | 2 +-
+ lv2ttl/surmeter.h        | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lv2ttl/meters.lv2.ttl.in b/lv2ttl/meters.lv2.ttl.in
+index 0afc651..dc5bbd0 100644
+--- a/lv2ttl/meters.lv2.ttl.in
++++ b/lv2ttl/meters.lv2.ttl.in
+@@ -3629,7 +3629,7 @@ mtr:surround8 at URI_SUFFIX@
+ 		a lv2:ControlPort ,
+ 			lv2:OutputPort ;
+ 		lv2:index 24 ;
+-		lv2:symbol "peak4" ;
++		lv2:symbol "peak3" ;
+ 		lv2:name "Peak 4" ;
+ 		lv2:minimum 0.0 ;
+ 		lv2:maximum 1.0 ;
+diff --git a/lv2ttl/surmeter.h b/lv2ttl/surmeter.h
+index f7b0ca8..062468b 100644
+--- a/lv2ttl/surmeter.h
++++ b/lv2ttl/surmeter.h
+@@ -36,7 +36,7 @@ static const RtkLv2Description _plugin_surmeter = {
+ 		{ "in3", AUDIO_IN, nan, nan, nan, "In3"},
+ 		{ "out3", AUDIO_OUT, nan, nan, nan, "Out3"},
+ 		{ "rms3", CONTROL_OUT, nan, 0.000000, 1.000000, "RMS 3"},
+-		{ "peak4", CONTROL_OUT, nan, 0.000000, 1.000000, "Peak 4"},
++		{ "peak3", CONTROL_OUT, nan, 0.000000, 1.000000, "Peak 3"},
+ 		{ "in4", AUDIO_IN, nan, nan, nan, "In4"},
+ 		{ "out4", AUDIO_OUT, nan, nan, nan, "Out4"},
+ 		{ "rms4", CONTROL_OUT, nan, 0.000000, 1.000000, "RMS 4"},
+From f0c35ee97267988b3a38c5851c5fa0761005bfc4 Mon Sep 17 00:00:00 2001
+From: Robin Gareus <robin at gareus.org>
+Date: Tue, 14 Jul 2020 22:43:57 +0200
+Subject: [PATCH] Amend 86c35e31c3e, update lv2:name to match symbol name
+
+---
+ lv2ttl/meters.lv2.ttl.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lv2ttl/meters.lv2.ttl.in b/lv2ttl/meters.lv2.ttl.in
+index dc5bbd0..7b2c6c6 100644
+--- a/lv2ttl/meters.lv2.ttl.in
++++ b/lv2ttl/meters.lv2.ttl.in
+@@ -3630,7 +3630,7 @@ mtr:surround8 at URI_SUFFIX@
+ 			lv2:OutputPort ;
+ 		lv2:index 24 ;
+ 		lv2:symbol "peak3" ;
+-		lv2:name "Peak 4" ;
++		lv2:name "Peak 3" ;
+ 		lv2:minimum 0.0 ;
+ 		lv2:maximum 1.0 ;
+ 	] , [

Deleted: x42-plugins.directory
===================================================================
--- x42-plugins.directory	2020-07-24 15:37:57 UTC (rev 665163)
+++ x42-plugins.directory	2020-07-24 15:38:08 UTC (rev 665164)
@@ -1,5 +0,0 @@
-[Desktop Entry]
-Name=x42-plugins
-Icon=x42-plugins
-Type=Directory
-Keywords=audio;sound;jackd;x42-plugins;

Copied: x42-plugins/repos/community-x86_64/x42-plugins.directory (from rev 665163, x42-plugins/trunk/x42-plugins.directory)
===================================================================
--- x42-plugins.directory	                        (rev 0)
+++ x42-plugins.directory	2020-07-24 15:38:08 UTC (rev 665164)
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Name=x42-plugins
+Icon=x42-plugins
+Type=Directory
+Keywords=audio;sound;jackd;x42-plugins;

Deleted: x42-plugins.menu
===================================================================
--- x42-plugins.menu	2020-07-24 15:37:57 UTC (rev 665163)
+++ x42-plugins.menu	2020-07-24 15:38:08 UTC (rev 665164)
@@ -1,44 +0,0 @@
-<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
-<Menu>
-  <Name>Applications</Name>
-  <Menu>
-    <Name>Multimedia</Name>
-    <Menu>
-      <Name>x42-plugins</Name>
-      <Directory>x42-plugins.directory</Directory>
-      <Include>
-        <Filename>com.x42_plugins.x42_darc.desktop</Filename>
-        <Filename>com.x42_plugins.x42_dpl.desktop</Filename>
-        <Filename>com.x42_plugins.x42_fat1.desktop</Filename>
-        <Filename>com.x42_plugins.x42_fil4.desktop</Filename>
-        <Filename>com.x42_plugins.x42_matrixmixer8x8.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_0.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_1.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_10.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_11.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_12.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_13.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_14.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_15.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_16.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_17.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_18.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_19.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_2.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_3.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_4.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_5.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_6.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_7.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_8.desktop</Filename>
-        <Filename>com.x42_plugins.x42_meter_9.desktop</Filename>
-        <Filename>com.x42_plugins.x42_mixtri.desktop</Filename>
-        <Filename>com.x42_plugins.x42_scope.desktop</Filename>
-        <Filename>com.x42_plugins.x42_spectr.desktop</Filename>
-        <Filename>com.x42_plugins.x42_stepseq.desktop</Filename>
-        <Filename>com.x42_plugins.x42_tuna_0.desktop</Filename>
-        <Filename>com.x42_plugins.x42_tuna_1.desktop</Filename>
-      </Include>
-    </Menu>
-  </Menu>
-</Menu>

Copied: x42-plugins/repos/community-x86_64/x42-plugins.menu (from rev 665163, x42-plugins/trunk/x42-plugins.menu)
===================================================================
--- x42-plugins.menu	                        (rev 0)
+++ x42-plugins.menu	2020-07-24 15:38:08 UTC (rev 665164)
@@ -0,0 +1,44 @@
+<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
+<Menu>
+  <Name>Applications</Name>
+  <Menu>
+    <Name>Multimedia</Name>
+    <Menu>
+      <Name>x42-plugins</Name>
+      <Directory>x42-plugins.directory</Directory>
+      <Include>
+        <Filename>com.x42_plugins.x42_darc.desktop</Filename>
+        <Filename>com.x42_plugins.x42_dpl.desktop</Filename>
+        <Filename>com.x42_plugins.x42_fat1.desktop</Filename>
+        <Filename>com.x42_plugins.x42_fil4.desktop</Filename>
+        <Filename>com.x42_plugins.x42_matrixmixer8x8.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_0.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_1.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_10.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_11.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_12.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_13.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_14.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_15.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_16.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_17.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_18.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_19.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_2.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_3.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_4.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_5.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_6.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_7.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_8.desktop</Filename>
+        <Filename>com.x42_plugins.x42_meter_9.desktop</Filename>
+        <Filename>com.x42_plugins.x42_mixtri.desktop</Filename>
+        <Filename>com.x42_plugins.x42_scope.desktop</Filename>
+        <Filename>com.x42_plugins.x42_spectr.desktop</Filename>
+        <Filename>com.x42_plugins.x42_stepseq.desktop</Filename>
+        <Filename>com.x42_plugins.x42_tuna_0.desktop</Filename>
+        <Filename>com.x42_plugins.x42_tuna_1.desktop</Filename>
+      </Include>
+    </Menu>
+  </Menu>
+</Menu>



More information about the arch-commits mailing list