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

David Runge dvzrv at gemini.archlinux.org
Thu Nov 18 17:19:36 UTC 2021


    Date: Thursday, November 18, 2021 @ 17:19:36
  Author: dvzrv
Revision: 1052445

upgpkg: x42-plugins 20211016-2: Rebuild to fix XDG desktop integration.

Remove Categories from the XDG desktop files (menu picks them up).
Install all relevant icons.

Modified:
  x42-plugins/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-18 16:02:10 UTC (rev 1052444)
+++ PKGBUILD	2021-11-18 17:19:36 UTC (rev 1052445)
@@ -3,7 +3,7 @@
 
 pkgname=x42-plugins
 pkgver=20211016
-pkgrel=1
+pkgrel=2
 pkgdesc="Collection of LV2 plugins"
 arch=('x86_64')
 url="https://github.com/x42/x42-plugins"
@@ -87,7 +87,7 @@
     case "$name" in
       meter)
         for type in {0..19}; do
-          gendesk -n \
+          gendesk -n -f \
                   --pkgname "com.x42_plugins.x42_meter_${type}" \
                   --name "x42-meter ${meter_types[$type]}" \
                   --pkgdesc "${meter_types[$type]}" \
@@ -98,7 +98,7 @@
         ;;
       tuna)
         for type in {0,1}; do
-          gendesk -n \
+          gendesk -n -f \
                   --pkgname "com.x42_plugins.x42_${name}_${type}" \
                   --name "x42-${name} ${tuna_types[$type]}" \
                   --pkgdesc "${tuna_types[$type]}" \
@@ -108,7 +108,7 @@
         done
         ;;
       *)
-        gendesk -n \
+        gendesk -n -f \
                 --pkgname "com.x42_plugins.x42_${name}" \
                 --name "x42-${name}" \
                 --pkgdesc "${comments[$name]}" \
@@ -118,8 +118,10 @@
         ;;
     esac
   done
+  sed -e '/Categories/d' -i *.desktop
   # moving images to correct location so installation is not such a hassle later on
   mv -v fat1.lv2/img/x42{_,-}fat1.png
+  mv -v fil4.lv2/img/x42{_,-}fil4.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
@@ -256,10 +258,8 @@
   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
+    install -vDm 644 "${_dirs[$name]}/img/x42-${name}.png" \
+      -t "${pkgdir}/usr/share/icons/hicolor/256x256/apps/"
   done
   install -vDm 644 "../${pkgname}.png" \
     -t "${pkgdir}/usr/share/icons/hicolor/256x256/apps/"



More information about the arch-commits mailing list