Massimiliano Torromeo pushed to branch main at Arch Linux / Packaging / 
Packages / code


Commits:
d4160aef by Massimiliano Torromeo at 2024-03-01T15:28:53+01:00
Reverted to building from git repository to fix language packs

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,11 +1,12 @@
 pkgbase = code
        pkgdesc = The Open Source build of Visual Studio Code (vscode) editor
        pkgver = 1.87.0
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/microsoft/vscode
        arch = x86_64
        license = MIT
        makedepends = gulp
+       makedepends = git
        makedepends = npm
        makedepends = python
        makedepends = yarn
@@ -20,17 +21,15 @@ pkgbase = code
        optdepends = zsh-completions: ZSH completitons
        optdepends = x11-ssh-askpass: SSH authentication
        provides = vscode
-       source = 
https://github.com/microsoft/vscode/archive/refs/tags/1.87.0/code-1.87.0.tar.gz
+       source = vscode::git+https://github.com/microsoft/vscode.git#tag=1.87.0
        source = code.js
        source = code.sh
        source = product_json.diff
        source = clipath.patch
-       source = build-no-git.patch
-       sha512sums = 
d55d42139060278fe72221d154a291abd00382043d4589cb69579ed50adad2fd945e84f79866994bddd4628f3eb872e638a5861115c5ce536ef5479172675c67
+       sha512sums = SKIP
        sha512sums = 
c8a3528f88a198e45c8c201940c55a56f1344f0d0d5352cf04348d083027d828f42f1a76b82cb595d3372f7d62859e3b64e3109d5fedf8f97c7b517415df9ad5
        sha512sums = 
425fbb7588020c2fce15d9be43e34f57ea0de327ebdf7693dc90d2b24a86df67bbc1ddfd7224e8579c17d0f34ad3cbfaacbf0e2044685a356e0cb662c0e1a2d0
        sha512sums = 
b1aa0d7c5b3e3e8ba1172822d75ea38e90efc431b270e0b4ca9e45bf9c0be0f60922c8618969ef071b5b6dbd9ac9f030294f1bf49bcc28c187b46d113dca63a7
        sha512sums = 
9809c9719b04c00d46477e2786a64ec40867096d287d68c97b31a881545e734d4f97d73c7c75e8fc0727f288ef696d169bbaf989a0cb9f8d5c8e2f045b89c60f
-       sha512sums = 
c0f52560580f374de3e9d28de647bdd26ff5b2117cc3157b413f7e2425b9e8569faf3e44f2f2ea76ffde53575258e1bccf935080d9446971f8db38057fe3ebcd
 
 pkgname = code


=====================================
PKGBUILD
=====================================
@@ -6,9 +6,8 @@ pkgname=code
 pkgdesc='The Open Source build of Visual Studio Code (vscode) editor'
 # Important: Remember to check 
https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites for 
target node version
 _electron=electron27
-_commit=019f4d1419fbc8219a181fab7892ebccf7ee29a2
 pkgver=1.87.0
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 url='https://github.com/microsoft/vscode'
 license=('MIT')
@@ -18,18 +17,16 @@ optdepends=('bash-completion: Bash completions'
             'x11-ssh-askpass: SSH authentication')
 makedepends=('gulp' 'git' 'npm' 'python' 'yarn' 'nodejs-lts-hydrogen' 
'desktop-file-utils')
 provides=('vscode')
-source=(vscode::"git+https://github.com/microsoft/vscode.git#commit=$_commit";
+source=(vscode::"git+https://github.com/microsoft/vscode.git#tag=$pkgver";
         'code.js'
         'code.sh'
         'product_json.diff'
-        'clipath.patch'
-        'build-no-git.patch')
+        'clipath.patch')
 sha512sums=('SKIP'
             
'c8a3528f88a198e45c8c201940c55a56f1344f0d0d5352cf04348d083027d828f42f1a76b82cb595d3372f7d62859e3b64e3109d5fedf8f97c7b517415df9ad5'
             
'425fbb7588020c2fce15d9be43e34f57ea0de327ebdf7693dc90d2b24a86df67bbc1ddfd7224e8579c17d0f34ad3cbfaacbf0e2044685a356e0cb662c0e1a2d0'
             
'b1aa0d7c5b3e3e8ba1172822d75ea38e90efc431b270e0b4ca9e45bf9c0be0f60922c8618969ef071b5b6dbd9ac9f030294f1bf49bcc28c187b46d113dca63a7'
-            
'9809c9719b04c00d46477e2786a64ec40867096d287d68c97b31a881545e734d4f97d73c7c75e8fc0727f288ef696d169bbaf989a0cb9f8d5c8e2f045b89c60f'
-            
'c0f52560580f374de3e9d28de647bdd26ff5b2117cc3157b413f7e2425b9e8569faf3e44f2f2ea76ffde53575258e1bccf935080d9446971f8db38057fe3ebcd')
+            
'9809c9719b04c00d46477e2786a64ec40867096d287d68c97b31a881545e734d4f97d73c7c75e8fc0727f288ef696d169bbaf989a0cb9f8d5c8e2f045b89c60f')
 
 # Even though we don't officially support other archs, let's
 # allow the user to use this PKGBUILD to compile the package
@@ -68,10 +65,9 @@ prepare() {
   # This patch no longer contains proprietary modifications.
   # See https://github.com/Microsoft/vscode/issues/31168 for details.
   patch -p0 -i ../product_json.diff
-  patch -p1 -i ../build-no-git.patch
 
   # Set the commit and build date
-  sed -e "s/@COMMIT@/$_commit/" -e "s/@DATE@/$(date -u -Is | sed 
's/\+00:00/Z/')/" -i product.json
+  sed -e "s/@COMMIT@/$(git rev-parse HEAD)/" -e "s/@DATE@/$(date -u -Is | sed 
's/\+00:00/Z/')/" -i product.json
 
   # Build native modules for system electron
   local _target=$(</usr/lib/$_electron/version)



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/code/-/commit/d4160aef5b8e17ab7d458d69d17d34de6bb2469f

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/code/-/commit/d4160aef5b8e17ab7d458d69d17d34de6bb2469f
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to