Merge branch '312-vscode-build-script' into 'master'

Resolve "VSCode build-script"

Closes #312

See merge request Pmodules/buildblocks!487
This commit is contained in:
2025-05-20 15:40:35 +02:00
3 changed files with 55 additions and 0 deletions

12
Tools/VSCode/build Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env modbuild
pbuild::install() {
:
cd "${PREFIX}"
tar --strip-components=1 -xvf "${PMODULES_DISTFILESDIR}/VSCode-${V_PKG}.tar.gz"
}
# Local Variables:
# mode: sh
# sh-basic-offset: 8
# tab-width: 8
# End:

View File

@@ -0,0 +1,27 @@
---
format: 1
VSCode:
defaults:
group: Tools
overlay: base
relstage: stable
systems: [.*]
build_functions:
configure: []
compile: []
urls:
- url: https://update.code.visualstudio.com/${V_PKG}/linux-x64/stable
name: VSCode-${V_PKG}.tar.gz
unpacker: none
shasums:
VSCode-1.100.2.tar.gz: 5c2cbbeaa08b92340dce899a78d66be8d92c09b4d75313bfdfc46fb3bddca5c0
versions:
1.100.2:
config:
relstage: unstable
1.87.0:
config:
relstage: stable
1.38.1_rhel7;1.73.1:
config:
relstage: deprecated

16
Tools/VSCode/modulefile Normal file
View File

@@ -0,0 +1,16 @@
#%Module1.0
module-whatis "lightweight but powerful source code editor"
module-url "https://code.visualstudio.com/docs"
module-license "See: https://code.visualstudio.com/license"
module-maintainer "Achim Gsell <achim.gsell@psi.ch>"
module-help "
Visual Studio Code is a lightweight but powerful source code editor
which runs on your desktop and is available for Windows, macOS and
Linux. It comes with built-in support for JavaScript, TypeScript
and Node.js and has a rich ecosystem of extensions for other languages
(such as C++, C#, Java, Python, PHP, Go) and runtimes (such as .NET
and Unity). Begin your journey with VS Code with these introductory
videos: https://code.visualstudio.com/docs/introvideos/overview
"