Merge pull request #6498 from praticamentetilde/atom

atom: Fix icon in desktop entry
This commit is contained in:
Enno Boland 2017-06-04 20:03:41 +02:00 committed by GitHub
commit b066c1a3d1
2 changed files with 9 additions and 9 deletions

View File

@ -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;

View File

@ -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