[Lunar-commits] <moonbase-other> VirtualBox: fix menu icon

v4hn me at v4hn.de
Sat Jun 8 02:27:48 CEST 2013


commit 0d724591c13e6a49553c84f03e9f4b621eb7f1f5
Author: v4hn <me at v4hn.de>
Date: Fri, 07 Jun 2013 17:27:25 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/0d724591c13e6a49553c84f03e9f4b621eb7f1f5

VirtualBox: fix menu icon
---
  virtual/VirtualBox/BUILD | +10/-3    
  1 file changed, 10 insertions(+), 3 deletions(-)

--- a/virtual/VirtualBox/BUILD
+++ b/virtual/VirtualBox/BUILD
@@ -56,10 +56,17 @@ install -Dm 644 {,/etc/vbox/}vbox.cfg &&
 
 if in_depends $MODULE qt4 ; then
   # File path for PDF, and make name more recognizable
-  sed -i -e "s:/opt/VirtualBox/:/usr/share/doc/VirtualBox/:" -e "s:Oracle VM VirtualBox:VirtualBox Oracle VM:1" /usr/lib/virtualbox/virtualbox.desktop &&
-  # Install .desktop entry and icon, then update the icon cache
+  sed -i -e "s:/opt/VirtualBox/:/usr/share/doc/VirtualBox/:" \
+         -e "s:Oracle VM VirtualBox:VirtualBox Oracle VM:1" \
+         /usr/lib/virtualbox/virtualbox.desktop &&
+  # Install .desktop entry and icon
   install -Dm 644 /usr/{lib/virtualbox,share/applications}/virtualbox.desktop    &&
-  install -Dm 644 /usr/{lib/virtualbox,share/icons/hicolor/32x32/apps}/VBox.png
+  for x in `ls /usr/lib/virtualbox/icons/`; do
+    if [[ -f /usr/lib/virtualbox/icons/$x/virtualbox.png ]]; then
+      install -Dm 644 /usr/lib/virtualbox/icons/$x/virtualbox.png \
+                      /usr/share/icons/hicolor/$x/apps/virtualbox.png
+    fi
+  done
 fi &&
 
 if in_depends $MODULE texlive ; then




More information about the Lunar-commits mailing list