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

Nicola Squartini tensor5 at archlinux.org
Fri Sep 9 07:30:05 UTC 2016


    Date: Friday, September 9, 2016 @ 07:30:04
  Author: tensor5
Revision: 189051

upgpkg: atom 1.10.2-2

Don't hard code icon path in atom.desktop.

Modified:
  atom/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-09-09 07:20:30 UTC (rev 189050)
+++ PKGBUILD	2016-09-09 07:30:04 UTC (rev 189051)
@@ -3,7 +3,7 @@
 
 pkgname=atom
 pkgver=1.10.2
-pkgrel=1
+pkgrel=2
 pkgdesc='A hackable text editor for the 21st Century'
 arch=('i686' 'x86_64')
 url='https://github.com/atom/atom'
@@ -133,9 +133,16 @@
   sed -e "s|<%= appName %>|Atom|" \
       -e "s/<%= description %>/${pkgdesc}/" \
       -e "s|<%= installDir %>/share/<%= appFileName %>/atom|electron --app=/usr/lib/atom|" \
-      -e "s|<%= iconPath %>|/usr/lib/atom/resources/atom.png|" \
+      -e "s|<%= iconPath %>|atom|" \
       resources/linux/atom.desktop.in > "${pkgdir}/usr/share/applications/atom.desktop"
 
+  for size in 16 24 32 48 64 128 256 512 1024; do
+    install -D -m 755 resources/app-icons/stable/png/${size}.png \
+            "${pkgdir}"/usr/share/icons/hicolor/${size}x${size}/apps/atom.png
+  done
+  ln -sf ../../../share/icons/hicolor/1024x1024/apps/atom.png \
+      "${pkgdir}"/usr/lib/atom/resources/atom.png
+
   install -D -m 755 out/Atom/resources/new-app/atom.sh "${pkgdir}/usr/bin/atom"
 
   install -D -m 644 out/Atom/resources/LICENSE.md \



More information about the arch-commits mailing list