mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-15 13:46:58 +02:00
vscode: update to 1.43.2. [skip ci]
closes https://github.com/void-linux/void-packages/pull/18314
This commit is contained in:
parent
00aec5d3dc
commit
a7011836e1
1 changed files with 11 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'vscode'
|
||||
pkgname=vscode
|
||||
version=1.43.1
|
||||
version=1.43.2
|
||||
revision=1
|
||||
hostmakedepends="pkg-config python nodejs-lts-10 yarn tar"
|
||||
makedepends="libxkbfile-devel libsecret-devel"
|
||||
|
@ -10,21 +10,22 @@ maintainer="shizonic <realtiaz@gmail.com>"
|
|||
license="MIT"
|
||||
homepage="https://code.visualstudio.com/"
|
||||
distfiles="https://github.com/Microsoft/vscode/archive/${version}.tar.gz"
|
||||
checksum=da4e85d41cfda28bb9466f2015bf2199e6293a1d497b0516c216b996f7e4e31e
|
||||
checksum=3dc8a809c711db89db7549d8be12e3b803e841fbcd6aa516b7a6afd09549d5e7
|
||||
patch_args="-Np1"
|
||||
|
||||
# Due to electron
|
||||
archs="x86_64"
|
||||
nostrip_files="code-oss"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686) _ARCH="i686";;
|
||||
x86_64) _ARCH="x64";;
|
||||
esac
|
||||
|
||||
pre_build() {
|
||||
# Use yarn to install dependencies
|
||||
echo "" > build/npm/preinstall.js
|
||||
|
||||
# redirect telemetry urls to 0.0.0.0
|
||||
# src: vscodium/undo_telemetry.sh
|
||||
_TELEMETRY_URLS="(dc\.services\.visualstudio\.com)|(vortex\.data\.microsoft\.com)"
|
||||
_REPLACEMENT="s/$_TELEMETRY_URLS/0\.0\.0\.0/g"
|
||||
grep -rl --exclude-dir=.git -E $_TELEMETRY_URLS | xargs sed -i -E $_REPLACEMENT
|
||||
}
|
||||
|
||||
do_build() {
|
||||
|
@ -34,13 +35,13 @@ do_build() {
|
|||
_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
|
||||
yarn install --ignore-engines --arch=x64
|
||||
yarn run gulp vscode-linux-x64-min
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vmkdir usr/lib/code-oss
|
||||
vcopy ../VSCode-linux-${_ARCH}/* usr/lib/code-oss
|
||||
vcopy ../VSCode-linux-x64/* usr/lib/code-oss
|
||||
vmkdir usr/bin
|
||||
ln -sf /usr/lib/code-oss/bin/code-oss ${DESTDIR}/usr/bin/
|
||||
vmkdir usr/share/applications
|
||||
|
|
Loading…
Add table
Reference in a new issue