[Lunar-commits] <moonbase> flash-plugin-11: Only copy KDE stuff if installed

Zachary McGrew zmcgrew at lunar-linux.org
Sat Nov 12 21:03:24 CET 2011


commit 1628eabf2d47cecca232536d046e767280bb84b6
Author: Zachary McGrew <zmcgrew at lunar-linux.org>
Date:   Sat Nov 12 12:03:24 2011 -0800

    flash-plugin-11: Only copy KDE stuff if installed
    
    This reworks the check for KDE files & arch to actually work if KDE isn't installed
---
 web/flash-plugin-11/BUILD |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/web/flash-plugin-11/BUILD b/web/flash-plugin-11/BUILD
index 202bf0c..4d6fe38 100644
--- a/web/flash-plugin-11/BUILD
+++ b/web/flash-plugin-11/BUILD
@@ -12,12 +12,13 @@
   install -m755 usr/share/applications/flash-player-properties.desktop /usr/share/applications/ &&
   cp -af usr/share/icons /usr/share/icons/ &&
 
-  if module_installed kdelibs && [ `arch` == "x86_64" ] ; then
+  if module_installed kdelibs ; then
     cp -af usr/share/kde4/services / &&
-    cp -af usr/lib64/* /usr/lib/kde4/
-   else
-    cp -af usr/share/kde4/services / &&
-    cp -af usr/lib/* /usr/lib/kde4/
+    if [ `arch` == "x86_64" ] ; then
+      cp -af usr/lib64/* /usr/lib/kde4/
+    else
+      cp -af usr/lib/* /usr/lib/kde4/
+    fi
   fi &&
 
   if [ -x /usr/bin/gtk-update-icon-cache -a -f /usr/share/icons/hicolor/index.theme ]; then


More information about the Lunar-commits mailing list