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

David Runge dvzrv at archlinux.org
Sun Jan 6 23:42:20 UTC 2019


    Date: Sunday, January 6, 2019 @ 23:42:20
  Author: dvzrv
Revision: 420781

upgpkg: x42-plugins 20190105-2

Adding generic names to the XDG desktop files to make them easier to find and understand.

Modified:
  x42-plugins/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++++++++++++++---------
 1 file changed, 20 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-06 22:57:05 UTC (rev 420780)
+++ PKGBUILD	2019-01-06 23:42:20 UTC (rev 420781)
@@ -3,7 +3,7 @@
 
 pkgname=x42-plugins
 pkgver=20190105
-pkgrel=1
+pkgrel=2
 pkgdesc="Collection of LV2 plugins"
 arch=('x86_64')
 url="https://github.com/x42/x42-plugins"
@@ -15,7 +15,8 @@
 sha512sums=('ad7b42c14427683531aa6db40c8fca7c15d9048e3afd30749d57dba929a43aa57363106f7770fda16ef97dc2e92edeaa8d150f55e9589e64c64b6c388fd44afe')
 
 prepare() {
-  declare -A descriptions=(
+  cd "${pkgname}-${pkgver}"
+  declare -A comments=(
     ["dpl1"]="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"
@@ -25,15 +26,23 @@
     ["stepseq"]="Simple step sequencer for moddevices.com"
     ["tuna"]="A musical instrument tuner with strobe characteristics"
   )
-  cd "${pkgname}-${pkgver}"
-  # replace ttf-freefont with ttf-liberation
-  export FONTFILE=/usr/share/fonts/TTF/DejaVuSans-Bold.ttf
+  declare -A generic=(
+    ["dpl1"]="Peak Limiter"
+    ["fat1"]="Auto Tune"
+    ["fil4"]="Parametric Equalizer"
+    ["meter"]="Audio Meter Collection"
+    ["mixtri"]="Mixer'n'Trigger"
+    ["scope"]="Oscilloscope"
+    ["stepseq"]="Step Sequencer"
+    ["tuna"]="Music Instrument Tuner"
+  )
   # XDG desktop files
-  for name in "${!descriptions[@]}"; do
+  for name in "${!comments[@]}"; do
     gendesk -n \
-            --pkgname x42-${name} \
-            --pkgdesc "${descriptions[$name]}" \
-            --name x42-${name} \
+            --pkgname "x42-${name}" \
+            --name "x42-${name}" \
+            --pkgdesc "${comments[$name]}" \
+            --genericname "${generic[$name]}" \
             --categories "AudioVideo;Audio"
   done
 }
@@ -40,6 +49,8 @@
 
 build() {
   cd "${pkgname}-${pkgver}"
+  # replace ttf-freefont with ttf-liberation
+  export FONTFILE=/usr/share/fonts/TTF/DejaVuSans-Bold.ttf
   make
 }
 



More information about the arch-commits mailing list