atom: update to 1.1.0.

This commit is contained in:
Andrea Brancaleoni 2015-10-30 18:41:44 +01:00
parent 358c0f5c26
commit edd8217052
2 changed files with 6 additions and 16 deletions

View file

@ -10,11 +10,11 @@ index 1969e3f..71c19ca 100644
Name=Atom Name=Atom
Comment=<%= description %> Comment=<%= description %>
GenericName=Text Editor GenericName=Text Editor
-Exec=<%= executable %> %U -Exec=<%= installDir %>/share/<%= appFileName %>/atom %U
-Icon=<%= iconName %> -Icon=<%= iconPath %>
+Exec=/usr/share/atom/atom %U +Exec=/usr/share/atom/atom %U
+Icon=/usr/share/atom/resources/app/resources/atom.png +Icon=/usr/share/atom/resources/app/resources/atom.png
Type=Application Type=Application
StartupNotify=true StartupNotify=true
Categories=GNOME;GTK;Utility;TextEditor;Development; Categories=GNOME;GTK;Utility;TextEditor;Development;
-- --

View file

@ -1,32 +1,22 @@
# Template file for 'atom' # Template file for 'atom'
pkgname=atom pkgname=atom
version=1.0.19 version=1.1.0
revision=1 revision=1
nocross=yes nocross=yes
nostrip=yes nostrip=yes
hostmakedepends="git pkg-config python-devel curl" hostmakedepends="git pkg-config python-devel nodejs"
makedepends="python-devel GConf-devel libgnome-keyring-devel" makedepends="python-devel GConf-devel libgnome-keyring-devel"
short_desc="Chrome-based text editor from Github" short_desc="Chrome-based text editor from Github"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>" maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="MIT" license="MIT"
homepage="https://atom.io" homepage="https://atom.io"
distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz" distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz"
checksum=775742460826ab7d6b0ffd035632019041b0a1ae40f47e15f4098241744252b5 checksum=25a64813b2741540fc26dfa0cf82e5769b324c016317fa3ff0593679fd5e88e9
_NODE_VERSION=0.12.7
pre_build() {
local NVM_VERSION=0.26.1
curl -o- https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash
source ~/.nvm/nvm.sh
nvm install $_NODE_VERSION
nvm use $_NODE_VERSION
}
do_build() { do_build() {
script/build script/build
} }
do_install() { do_install() {
source ~/.nvm/nvm.sh
nvm use $_NODE_VERSION
script/grunt install --install-dir ${DESTDIR}/usr script/grunt install --install-dir ${DESTDIR}/usr
sed -i "s|${DESTDIR}||g" ${DESTDIR}/usr/share/applications/atom.desktop sed -i "s|${DESTDIR}||g" ${DESTDIR}/usr/share/applications/atom.desktop
vlicense LICENSE.md vlicense LICENSE.md