Skip to content

atom: Update version from 1.9.0 to 1.12.6 #232

Merged
merged 1 commit into from
Dec 12, 2016
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
27 changes: 22 additions & 5 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.9.0-0
# BEE_VERSION atom-1.12.6-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 Down Expand Up @@ -28,7 +28,7 @@ SRCURL[0]="https://github.com/atom/atom/archive/v${PKGVERSION}.tar.gz"
## outside the source directory and need to be build inside the source
## directory.

# build_in_sourcedir
build_in_sourcedir

###############################################################################
## bee cannot detect buildtypes specified in subdirectories.
Expand Down Expand Up @@ -58,12 +58,29 @@ SRCURL[0]="https://github.com/atom/atom/archive/v${PKGVERSION}.tar.gz"
#}

mee_build() {
start_cmd "${S}"/script/build --build-dir "${B}"

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

unset SUDO_USER SUDO_UID SUDO_COMMAND SUDO_GID
start_cmd script/build
}

mee_install() {
ln -s "${S}"/build "${B}"/build
start_cmd "${S}"/script/grunt install --build-dir "${B}" --install-dir "${D}"/"${PREFIX}"

# "script/build --install" calls "script/build/lib/install-application"
# which does not honor DESTDIR and always installs into /usr/local
# so do it manually here until they fix it.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add the issue?

#
# https://github.com/atom/atom/issues/13240

set -vx
umask 000
mkdir -p $D$DATAROOTDIR $D$BINDIR
cp -r out/atom-1.12.6-amd64 $D$DATAROOTDIR/atom
cp atom.sh $D$BINDIR/atom
ln -s ../share/atom/resources/app/apm/node_modules/.bin/apm $D$BINDIR/apm
set +xv
}
## by default this may be 'make install DESTDIR="${D}"'

Expand Down