vscode: unbreak.

See 25086b9eee
for more information about "gulp".
This commit is contained in:
Juan RP 2020-02-07 12:24:38 +01:00
parent a45907ad8a
commit 14c311f261
No known key found for this signature in database
GPG key ID: AF19F6CB482F9368

View file

@ -2,7 +2,7 @@
pkgname=vscode
version=1.42.0
revision=1
hostmakedepends="pkg-config python nodejs-lts yarn tar"
hostmakedepends="pkg-config python nodejs-lts-10 yarn tar"
makedepends="libxkbfile-devel libsecret-devel"
depends="libXtst libxkbfile nss dejavu-fonts-ttf"
short_desc="Microsoft Code for Linux"
@ -13,20 +13,12 @@ distfiles="https://github.com/Microsoft/vscode/archive/${version}.tar.gz"
checksum=b2d1cc61127483590fc47a0f8336605da0bbe92b3011024c77b2c15b13a23c8e
patch_args="-Np1"
broken="https://build.voidlinux.org/builders/x86_64_builder/builds/22897/steps/shell_3/logs/stdio"
# Due to electron
archs="i686 x86_64"
archs="x86_64"
nostrip_files="code-oss"
# The default memory limit may be too low for current versions of node
# to successfully build vscode. This sets it to 4GB, but
# change this number if it still doesn't work for your system.
_mem_limit="--max_old_space_size=4095"
case "$XBPS_TARGET_MACHINE" in
i686) broken="https://build.voidlinux.org/builders/i686_builder/builds/10486/steps/shell_3/logs/stdio"
_ARCH="ia32";;
i686) _ARCH="i686";;
x86_64) _ARCH="x64";;
esac
@ -36,6 +28,11 @@ pre_build() {
}
do_build() {
# The default memory limit may be too low for current versions of node
# to successfully build vscode. This sets it to 4GB, but
# change this number if it still doesn't work for your system.
_mem_limit="--max_old_space_size=4095"
export NODE_OPTIONS="${_mem_limit}"
yarn install --ignore-engines --arch=${_ARCH}
yarn run gulp vscode-linux-${_ARCH}-min