app-editors/vscode: add 1.77.3

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2023-04-26 16:49:11 +03:00
parent 02798a49f3
commit 289df91301
2 changed files with 129 additions and 0 deletions
+3
View File
@@ -7,3 +7,6 @@ DIST vscode-1.77.0-arm64.tar.gz 121710946 BLAKE2B 3e37925b306e92b533f4a7f61b0588
DIST vscode-1.77.1-amd64.tar.gz 124991721 BLAKE2B ed24ea4d09a4f4f2a0c09220a955417dbcbc35ec16e9f23f64c6e5e305b4e262957ab0f545c583a9100dc0d74ffc45c62f3f101b3df58e041693f1cd5b215dc4 SHA512 b7411a965cc7296f58ed64a879dcbfe564f85420dc8e06155b79b5835241a312ba156fcfbe11ae83f6575844b605e10adb61798735b64a05ed61747a78bba390
DIST vscode-1.77.1-arm.tar.gz 112116717 BLAKE2B ed11be05071f55b2072bbaa01e6d8e84e203166ba8fdda203335c05388a165714987792e12fdb11324c74e0df87f16807fe1c6a2f930032a0b0e2a021039630d SHA512 319cb73c33630a930957615d4355b91762210946f53dd5f5ee3446a21f0362a7c0a632739d1b1845604ba8c6475d8677cce3062ade67b7dede7032b26237e67a
DIST vscode-1.77.1-arm64.tar.gz 121688526 BLAKE2B 193aa9cc07896548a6560d3beef37885708412c96763ae7cb83f0b6211e8da8c127b93078948f6920a2c81a03fb8c51818d7964d4176be621a81d947aa7bf031 SHA512 630dab3e7e8b898bd27b308f62fce46aada883b75d89873495568cad5030c6430e5d425321cc6c7b35ce4326079db1fa86b6a43663129ec53d4224de7bb90ae8
DIST vscode-1.77.3-amd64.tar.gz 124980454 BLAKE2B b8f92010c575edec2daf39af5bb2eb8ff43c9538a8ac6cd8ce2c6a66f461c5d0a3284b6dd0e540e7b8ef195652e7c5c2439a8c4ef8286a63d3fa24fa6c663c20 SHA512 9772ec50e6e8fb099f746e89b5b6fb3948699e92d1bb865f2de95317baa2dbad7ce30d61132585859dcd11699b52f91229cc2622b01492d1c63254964015727c
DIST vscode-1.77.3-arm.tar.gz 112112804 BLAKE2B 53be5e0f8ec3d859b36626f98799f3cbc7270aef5f8770a69924a5a6121d28609592cd1c77e663715015128c9c4180f6555ab35ff896e76f9e913b2c308770ae SHA512 9160e0cdafa3f562a504e24f94c8b70100d79a776dd711b2ddcd700ded4428d7523a1f396d9377bf8ed7a4977a448a2ee98d77111afb13f69ae91f870cfd8ba6
DIST vscode-1.77.3-arm64.tar.gz 121682734 BLAKE2B f9428cd9ebf921bee3797e4b3a816935e00a37f1cbe0ea128769b52f28e3b3fce4f758caefc6667eb0e2dd2702a6047ad337db91b82e16167860a265310ad5bc SHA512 b16f4d3a1d6c1c612520128fd422f339f0c2acd049fe82e3bebb903641ad17dfcbfffcba32b15bd9595d7ed622b69af343efb5e616ed94f991247ae17fcb38bc
+126
View File
@@ -0,0 +1,126 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop pax-utils xdg optfeature
DESCRIPTION="Multiplatform Visual Studio Code from Microsoft"
HOMEPAGE="https://code.visualstudio.com"
SRC_URI="
amd64? ( https://update.code.visualstudio.com/${PV}/linux-x64/stable -> ${P}-amd64.tar.gz )
arm? ( https://update.code.visualstudio.com/${PV}/linux-armhf/stable -> ${P}-arm.tar.gz )
arm64? ( https://update.code.visualstudio.com/${PV}/linux-arm64/stable -> ${P}-arm64.tar.gz )
"
S="${WORKDIR}"
RESTRICT="mirror strip bindist"
LICENSE="
Apache-2.0
BSD
BSD-1
BSD-2
BSD-4
CC-BY-4.0
ISC
LGPL-2.1+
Microsoft-vscode
MIT
MPL-2.0
openssl
PYTHON
TextMate-bundle
Unlicense
UoI-NCSA
W3C
"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm ~arm64"
RDEPEND="
>=app-accessibility/at-spi2-core-2.46.0:2
app-crypt/libsecret[crypt]
dev-libs/expat
dev-libs/glib:2
dev-libs/nspr
dev-libs/nss
media-libs/alsa-lib
media-libs/mesa
net-print/cups
sys-apps/util-linux
sys-apps/dbus
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
x11-libs/libdrm
x11-libs/libX11
x11-libs/libxcb
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libxkbcommon
x11-libs/libxkbfile
x11-libs/libXrandr
x11-libs/libxshmfence
x11-libs/pango
"
QA_PREBUILT="
/opt/vscode/bin/code-tunnel
/opt/vscode/chrome_crashpad_handler
/opt/vscode/chrome-sandbox
/opt/vscode/code
/opt/vscode/libEGL.so
/opt/vscode/libffmpeg.so
/opt/vscode/libGLESv2.so
/opt/vscode/libvk_swiftshader.so
/opt/vscode/libvulkan.so*
/opt/vscode/resources/app/extensions/*
/opt/vscode/resources/app/node_modules.asar.unpacked/*
/opt/vscode/swiftshader/libEGL.so
/opt/vscode/swiftshader/libGLESv2.so
"
src_install() {
if use amd64; then
cd "${WORKDIR}/VSCode-linux-x64" || die
elif use arm; then
cd "${WORKDIR}/VSCode-linux-armhf" || die
elif use arm64; then
cd "${WORKDIR}/VSCode-linux-arm64" || die
else
die "Visual Studio Code only supports amd64, arm and arm64"
fi
# Cleanup
rm -r ./resources/app/LICENSES.chromium.html ./resources/app/LICENSE.rtf ./resources/app/licenses || die
# Disable update server
sed -e "/updateUrl/d" -i ./resources/app/product.json || die
# Install
pax-mark m code
insinto "/opt/${PN}"
doins -r *
fperms +x /opt/${PN}/{,bin/}code
fperms +x /opt/${PN}/chrome_crashpad_handler
fperms 4711 /opt/${PN}/chrome-sandbox
fperms 755 /opt/${PN}/resources/app/extensions/git/dist/{askpass,git-editor,ssh-askpass}{,-empty}.sh
fperms -R +x /opt/${PN}/resources/app/out/vs/base/node
fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg
fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/node-pty/build/Release/spawn-helper
dosym "../../opt/${PN}/bin/code" "usr/bin/vscode"
dosym "../../opt/${PN}/bin/code" "usr/bin/code"
domenu "${FILESDIR}/vscode.desktop"
domenu "${FILESDIR}/vscode-url-handler.desktop"
domenu "${FILESDIR}/vscode-wayland.desktop"
domenu "${FILESDIR}/vscode-url-handler-wayland.desktop"
newicon "resources/app/resources/linux/code.png" "vscode.png"
}
pkg_postinst() {
xdg_pkg_postinst
optfeature "keyring support inside vscode" "gnome-base/gnome-keyring"
}