[arch-commits] Commit in freecad/trunk (PKGBUILD freecad.desktop)

Florian Pritz bluewind at archlinux.org
Sun Mar 5 10:48:59 UTC 2017


    Date: Sunday, March 5, 2017 @ 10:48:59
  Author: bluewind
Revision: 214945

Allow icon themes to override freecad icon

Modified:
  freecad/trunk/PKGBUILD
  freecad/trunk/freecad.desktop

-----------------+
 PKGBUILD        |    8 +++++++-
 freecad.desktop |    2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-05 09:48:08 UTC (rev 214944)
+++ PKGBUILD	2017-03-05 10:48:59 UTC (rev 214945)
@@ -26,7 +26,7 @@
         "remove-qtwebkit.patch"
         "remove-webgui.patch")
 md5sums=('6e992c98ae2b8448bcf428e3e9efb02f'
-         '382cd66757dae635b53105d207679fce'
+         'b7bd72a67073c2869da263d8df61f205'
          'c2f4154c8e4678825411de8e7fa54c6b'
          '19e9cd7d41a1ddd557cef05a6b23bdee'
          '6b5f9253c559c7aacaa277b2973fbaf3')
@@ -81,6 +81,12 @@
   desktop-file-install \
     --dir="${pkgdir}/usr/share/applications" \
     "${srcdir}/${pkgname}.desktop"
+  for i in 16 32 48 64; do
+	  install -Dm644 "src/Gui/Icons/freecad-icon-${i}.png" \
+		  "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/freecad.png"
+  done
+  install -Dm644 "src/Gui/Icons/freecad.svg" \
+	  "$pkgdir/usr/share/icons/hicolor/scalable/apps/freecad.svg"
 
   # Mime info
   install -D -m644 "${srcdir}/${pkgname}.xml" "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"

Modified: freecad.desktop
===================================================================
--- freecad.desktop	2017-03-05 09:48:08 UTC (rev 214944)
+++ freecad.desktop	2017-03-05 10:48:59 UTC (rev 214945)
@@ -8,7 +8,7 @@
 Path=/usr/share/freecad
 Terminal=false
 Type=Application
-Icon=/usr/share/freecad/freecad.xpm
+Icon=freecad
 Categories=Application;Science;Math;Education;
 StartupNotify=true
 MimeType=application/x-extension-fcstd;


More information about the arch-commits mailing list