mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
atom: use nvm in install phase
This commit is contained in:
parent
ce1b06cd3d
commit
311d4bb337
1 changed files with 5 additions and 3 deletions
|
@ -12,19 +12,21 @@ 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=13e29e10fcbdad3a1427959ec94246d564b7741a5bdf77d5839f7d25a8c131e7
|
checksum=13e29e10fcbdad3a1427959ec94246d564b7741a5bdf77d5839f7d25a8c131e7
|
||||||
|
_NODE_VERSION=0.12.7
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
local NODE_VERSION=0.12.7
|
|
||||||
local NVM_VERSION=0.26.1
|
local NVM_VERSION=0.26.1
|
||||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash
|
curl -o- https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash
|
||||||
source ~/.nvm/nvm.sh
|
source ~/.nvm/nvm.sh
|
||||||
nvm install $NODE_VERSION
|
nvm install $_NODE_VERSION
|
||||||
nvm use $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
|
||||||
|
|
Loading…
Add table
Reference in a new issue