Skip to content

Update atom from 1.28.0 to 1.34.0 #1012

Merged
merged 5 commits into from
Jan 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions atom.be0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env beesh

# BEE_VERSION atom-1.29.0-0
# BEE_VERSION atom-1.34.0-0

## this file was created by bee init and should be executed to build a
## bee-package. (Additional hints are located at the end of this file.)
Expand All @@ -9,7 +9,7 @@
## The source URL(s) define the location of the sources that will be
## downloaded. Version variables may be used to simplify reuse of this bee-file.

SRCURL[0]="https://github.com/atom/atom/archive/v${PKGVERSION}.tar.gz atom-${PKGVERSION}"
SRCURL[0]="https://github.com/atom/atom/archive/v${PKGVERSION}.tar.gz atom-${PKGVERSION}.tar.gz"

###############################################################################
## Add URLs/pathes to patch files to the PATCHURL array.
Expand Down Expand Up @@ -58,27 +58,19 @@ build_in_sourcedir
#}

mee_build() {

# some scripts in their stupid build system do strange things
# when they see SUDO environment

start_cmd source /package/node/profile
pmenzel marked this conversation as resolved.
Show resolved Hide resolved

start_cmd mkdir -p ${D}${DATADIR}/applications
start_cmd mkdir -p ${D}${DATADIR}/icons/hicolor
unset SUDO_USER SUDO_UID SUDO_COMMAND SUDO_GID
HOME=${S} start_cmd script/build --install ${D}${PREFIX}
XDG_DATA_DIRS=${D}${DATADIR} HOME=${S} start_cmd script/build --install ${D}${PREFIX}
}

mee_install() {
cat <<EOF >${D}${DATADIR}/applications/atom.desktop
[Desktop Entry]
Name=Atom
Comment=A hackable text editor for the 21st Century.
GenericName=Text Editor
Exec=${DATADIR}/atom/atom %F
Icon=${DATADIR}/atom/atom.png
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;TextEditor;Development;
MimeType=text/plain;
EOF
sed 's%/scratch/local2/bee-schrader/atom/atom-1.34.0-0/image%%' -i ${D}${DATADIR}/applications/atom.desktop
}
## by default this may be 'make install DESTDIR="${D}"'

Expand Down