From 76b5fe510003f33901bb501d852ec27f58b63b55 Mon Sep 17 00:00:00 2001 From: Claudio Maggioni Date: Sat, 27 May 2017 19:19:22 +0200 Subject: [PATCH] atom: update to 1.17.2-2 (fix desktop icon) --- srcpkgs/atom/patches/desktop.patch | 2 +- srcpkgs/atom/template | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/srcpkgs/atom/patches/desktop.patch b/srcpkgs/atom/patches/desktop.patch index 1754f8a5083..4f3b064af6d 100644 --- a/srcpkgs/atom/patches/desktop.patch +++ b/srcpkgs/atom/patches/desktop.patch @@ -13,7 +13,7 @@ index 1969e3f..71c19ca 100644 -Exec=<%= installDir %>/share/<%= appFileName %>/atom %F -Icon=<%= iconPath %> +Exec=/usr/share/atom/atom %U -+Icon=/usr/share/atom/resources/app.asar.unpacked/resources/atom.png ++Icon=/usr/share/atom/resources/app/resources/atom.png Type=Application StartupNotify=true Categories=GNOME;GTK;Utility;TextEditor;Development; diff --git a/srcpkgs/atom/template b/srcpkgs/atom/template index 49894c8f3b9..adf431f5b1d 100644 --- a/srcpkgs/atom/template +++ b/srcpkgs/atom/template @@ -1,7 +1,7 @@ # Template file for 'atom' pkgname=atom version=1.17.2 -revision=1 +revision=2 nocross=yes nostrip=yes hostmakedepends="git pkg-config python-devel nodejs curl" @@ -16,12 +16,12 @@ checksum=bdde2b60e93f818976c28a0b6259d4636a695a2db9c832eeb186082744cd8f6b only_for_archs="i686 x86_64" pre_build() { - local NVM_VERSION=0.33.2 - local NODE_VERSION=6 - curl -o- https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash - source $HOME/.nvm/nvm.sh - nvm install $NODE_VERSION - nvm use $NODE_VERSION + local NVM_VERSION=0.33.2 + local NODE_VERSION=6 + curl -o- https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash + source $HOME/.nvm/nvm.sh + nvm install $NODE_VERSION + nvm use $NODE_VERSION sed -e "s/<%= description %>/$pkgdesc/" \ -e "s|<%= appName %>|Atom|"\ @@ -49,7 +49,7 @@ do_install() { ls -lah vcopy out/atom-$version-$targetarch/* usr/share/atom vlicense LICENSE.md - + ln -s /usr/share/atom/resources/app/apm/node_modules/.bin/apm "$DESTDIR/usr/bin/apm" # remove useless static libs