[arch-commits] Commit in code/repos/community-testing-x86_64 (10 files)

Filipe Laíns ffy00 at archlinux.org
Sat Apr 6 16:03:28 UTC 2019


    Date: Saturday, April 6, 2019 @ 16:03:27
  Author: ffy00
Revision: 449998

archrelease: copy trunk to community-testing-x86_64

Added:
  code/repos/community-testing-x86_64/PKGBUILD
    (from rev 449997, code/trunk/PKGBUILD)
  code/repos/community-testing-x86_64/code-liveshare.diff
    (from rev 449997, code/trunk/code-liveshare.diff)
  code/repos/community-testing-x86_64/code.js
    (from rev 449997, code/trunk/code.js)
  code/repos/community-testing-x86_64/code.sh
    (from rev 449997, code/trunk/code.sh)
  code/repos/community-testing-x86_64/product_json.diff
    (from rev 449997, code/trunk/product_json.diff)
Deleted:
  code/repos/community-testing-x86_64/PKGBUILD
  code/repos/community-testing-x86_64/code-liveshare.diff
  code/repos/community-testing-x86_64/code.js
  code/repos/community-testing-x86_64/code.sh
  code/repos/community-testing-x86_64/product_json.diff

---------------------+
 PKGBUILD            |  244 +++++++++++++++++++++++++-------------------------
 code-liveshare.diff |   24 ++--
 code.js             |   58 +++++------
 code.sh             |    6 -
 product_json.diff   |   40 ++++----
 5 files changed, 186 insertions(+), 186 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-06 16:01:31 UTC (rev 449997)
+++ PKGBUILD	2019-04-06 16:03:27 UTC (rev 449998)
@@ -1,122 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-# Contributor: Michael Hansen <zrax0111 gmail com>
-# Contributor: Francisco Magalhães <franmagneto gmail com>
-
-pkgname=code
-pkgdesc='The Open Source build of Visual Studio Code (vscode) editor'
-pkgver=1.33.0
-pkgrel=1
-arch=('x86_64')
-url='https://github.com/Microsoft/vscode'
-license=('MIT')
-depends=('electron' 'libsecret' 'libxkbfile' 'ripgrep')
-# doesn't build without old nodejs: https://github.com/Microsoft/vscode/issues/49292
-# makedepends=('git' 'gulp' 'npm' 'python2' 'yarn' 'nodejs-lts-carbon')
-makedepends=('git' 'gulp' 'npm' 'python2' 'yarn' 'nodejs-lts-dubnium')
-source=("$pkgname::git+https://github.com/Microsoft/vscode.git#tag=$pkgver"
-        'code.js'
-        'code.sh'
-        'product_json.diff'
-        'code-liveshare.diff')
-sha512sums=('SKIP'
-            '814c9554427183cd893a33cd2cbe91f6e0ea71921ef0717c86217b1d3058d265f9ff7a9ace3e7b76f122e60b7686475cf4d999e581a1845face3033afb9f745f'
-            '0e75ee88274cbaf48c59ef6f363f6b8ac2ea83f8b17a61155008db773b709a1f0233754fa63a136ec0417313ba90a7eb17db000ec22a38ca8840d8ba6c47cab1'
-            '8ec47e497287d67f37e7b669af416f43d5cdbd4574892867d7b95996ef5de53640b5bc919b06b177e1fd91cb005579d6ed0c17325117b9914ba7cf28f5f06e40'
-            '0bd10ca06dea22854e47fc45d833756ee8d7bf714c88f63feef44e0b0b5da052fba3c27d001865e3389f391cd7b888d92dc0ba44029fa5c736225da3cf2f9a46')
-
-# Even though we don't officially support other archs, let's
-# allow the user to use this PKGBUILD to compile the package
-# for his architecture
-case "$CARCH" in
-  i686)
-    _vscode_arch=ia32
-    ;;
-  x86_64)
-    _vscode_arch=x64
-    ;;
-  armv7h)
-    _vscode_arch=arm
-    ;;
-  *)
-    # Needed for mksrcinfo
-    _vscode_arch=DUMMY
-    ;;
-esac
-
-prepare() {
-  cd $pkgname
-
-  # This patch no longer contains proprietary modifications.
-  # See https://github.com/Microsoft/vscode/issues/31168 for details.
-  patch -p0 < ../product_json.diff
-
-  # Set the commit and build date
-  local _commit=$(git rev-parse HEAD)
-  local _datestamp=$(date -u -Is | sed 's/\+00:00/Z/')
-  sed -e "s/@COMMIT@/$_commit/" -e "s/@DATE@/$_datestamp/" -i product.json
-
-  # See https://github.com/MicrosoftDocs/live-share/issues/262 for details
-  patch -p1 < ../code-liveshare.diff
-
-  # Build native modules for system electron
-  local _target=$(</usr/lib/electron/version)
-  sed -i "s/^target .*/target \"${_target//v/}\"/" .yarnrc
-
-  # Patch appdata and desktop file
-  sed -i 's|/usr/share/@@NAME@@/@@NAME@@|@@NAME@@|g
-          s|@@NAME_SHORT@@|Code|g
-          s|@@NAME_LONG@@|Code - OSS|g
-          s|@@NAME@@|code-oss|g
-          s|@@ICON@@|code-oss|g
-          s|@@LICENSE@@|MIT|g
-          s|inode/directory;||' resources/linux/code.{appdata.xml,desktop}
-}
-
-build() {
-  # https://github.com/mapbox/node-sqlite3/issues/1044
-  mkdir -p path
-  ln -sf /usr/bin/python2 path/python
-  export PATH="$PWD/path:$PATH"
-
-  cd $pkgname
-
-  yarn install --arch=$_vscode_arch
-
-  # The default memory limit may be too low for current versions of node
-  # to successfully build vscode. Change it if this number still doesn't
-  # work for your system.
-  mem_limit="--max_old_space_size=4096"
-
-  if ! /usr/bin/node $mem_limit /usr/bin/gulp vscode-linux-$_vscode_arch-min
-  then
-      echo
-      echo "*** NOTE: If the build failed due to running out of file handles (EMFILE),"
-      echo "*** you will need to raise your max open file limit."
-      echo "*** You can check this for more information on how to increase this limit:"
-      echo "***    https://ro-che.info/articles/2017-03-26-increase-open-files-limit"
-      exit 1
-  fi
-}
-
-package() {
-  # Install resource files
-  install -dm 755 "$pkgdir"/usr/lib/$pkgname
-  cp -r --no-preserve=ownership --preserve=mode VSCode-linux-$_vscode_arch/resources/app/* "$pkgdir"/usr/lib/$pkgname/
-
-  # replace statically included binary with system copy
-  ln -sf /usr/bin/rg "$pkgdir"/usr/lib/code/node_modules.asar.unpacked/vscode-ripgrep/bin/rg
-
-  # Install binary
-  install -Dm 755 code.sh "$pkgdir"/usr/bin/code-oss
-  install -Dm 755 code.js "$pkgdir"/usr/lib/$pkgname/code.js
-  ln -sf /usr/bin/code-oss "$pkgdir"/usr/bin/code
-
-  # Install appdata and desktop file
-  install -Dm 644 code/resources/linux/code.appdata.xml "$pkgdir"/usr/share/metainfo/code-oss.appdata.xml
-  install -Dm 644 code/resources/linux/code.desktop "$pkgdir"/usr/share/applications/code-oss.desktop
-  install -Dm 644 VSCode-linux-$_vscode_arch/resources/app/resources/linux/code.png "$pkgdir"/usr/share/pixmaps/code-oss.png
-
-  # Install license files
-  install -Dm 644 VSCode-linux-$_vscode_arch/resources/app/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-  install -Dm 644 VSCode-linux-$_vscode_arch/resources/app/ThirdPartyNotices.txt "$pkgdir"/usr/share/licenses/$pkgname/ThirdPartyNotices.txt
-}

Copied: code/repos/community-testing-x86_64/PKGBUILD (from rev 449997, code/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-04-06 16:03:27 UTC (rev 449998)
@@ -0,0 +1,122 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Michael Hansen <zrax0111 gmail com>
+# Contributor: Francisco Magalhães <franmagneto gmail com>
+
+pkgname=code
+pkgdesc='The Open Source build of Visual Studio Code (vscode) editor'
+pkgver=1.33.0
+pkgrel=1
+arch=('x86_64')
+url='https://github.com/Microsoft/vscode'
+license=('MIT')
+depends=('electron' 'libsecret' 'libxkbfile' 'ripgrep')
+# doesn't build without old nodejs: https://github.com/Microsoft/vscode/issues/49292
+# makedepends=('git' 'gulp' 'npm' 'python2' 'yarn' 'nodejs-lts-carbon')
+makedepends=('git' 'gulp' 'npm' 'python2' 'yarn' 'nodejs-lts-dubnium')
+source=("$pkgname::git+https://github.com/Microsoft/vscode.git#tag=$pkgver"
+        'code.js'
+        'code.sh'
+        'product_json.diff'
+        'code-liveshare.diff')
+sha512sums=('SKIP'
+            '814c9554427183cd893a33cd2cbe91f6e0ea71921ef0717c86217b1d3058d265f9ff7a9ace3e7b76f122e60b7686475cf4d999e581a1845face3033afb9f745f'
+            '0e75ee88274cbaf48c59ef6f363f6b8ac2ea83f8b17a61155008db773b709a1f0233754fa63a136ec0417313ba90a7eb17db000ec22a38ca8840d8ba6c47cab1'
+            '8ec47e497287d67f37e7b669af416f43d5cdbd4574892867d7b95996ef5de53640b5bc919b06b177e1fd91cb005579d6ed0c17325117b9914ba7cf28f5f06e40'
+            '0bd10ca06dea22854e47fc45d833756ee8d7bf714c88f63feef44e0b0b5da052fba3c27d001865e3389f391cd7b888d92dc0ba44029fa5c736225da3cf2f9a46')
+
+# Even though we don't officially support other archs, let's
+# allow the user to use this PKGBUILD to compile the package
+# for his architecture
+case "$CARCH" in
+  i686)
+    _vscode_arch=ia32
+    ;;
+  x86_64)
+    _vscode_arch=x64
+    ;;
+  armv7h)
+    _vscode_arch=arm
+    ;;
+  *)
+    # Needed for mksrcinfo
+    _vscode_arch=DUMMY
+    ;;
+esac
+
+prepare() {
+  cd $pkgname
+
+  # This patch no longer contains proprietary modifications.
+  # See https://github.com/Microsoft/vscode/issues/31168 for details.
+  patch -p0 < ../product_json.diff
+
+  # Set the commit and build date
+  local _commit=$(git rev-parse HEAD)
+  local _datestamp=$(date -u -Is | sed 's/\+00:00/Z/')
+  sed -e "s/@COMMIT@/$_commit/" -e "s/@DATE@/$_datestamp/" -i product.json
+
+  # See https://github.com/MicrosoftDocs/live-share/issues/262 for details
+  patch -p1 < ../code-liveshare.diff
+
+  # Build native modules for system electron
+  local _target=$(</usr/lib/electron/version)
+  sed -i "s/^target .*/target \"${_target//v/}\"/" .yarnrc
+
+  # Patch appdata and desktop file
+  sed -i 's|/usr/share/@@NAME@@/@@NAME@@|@@NAME@@|g
+          s|@@NAME_SHORT@@|Code|g
+          s|@@NAME_LONG@@|Code - OSS|g
+          s|@@NAME@@|code-oss|g
+          s|@@ICON@@|code-oss|g
+          s|@@LICENSE@@|MIT|g
+          s|inode/directory;||' resources/linux/code.{appdata.xml,desktop}
+}
+
+build() {
+  # https://github.com/mapbox/node-sqlite3/issues/1044
+  mkdir -p path
+  ln -sf /usr/bin/python2 path/python
+  export PATH="$PWD/path:$PATH"
+
+  cd $pkgname
+
+  yarn install --arch=$_vscode_arch
+
+  # The default memory limit may be too low for current versions of node
+  # to successfully build vscode. Change it if this number still doesn't
+  # work for your system.
+  mem_limit="--max_old_space_size=4096"
+
+  if ! /usr/bin/node $mem_limit /usr/bin/gulp vscode-linux-$_vscode_arch-min
+  then
+      echo
+      echo "*** NOTE: If the build failed due to running out of file handles (EMFILE),"
+      echo "*** you will need to raise your max open file limit."
+      echo "*** You can check this for more information on how to increase this limit:"
+      echo "***    https://ro-che.info/articles/2017-03-26-increase-open-files-limit"
+      exit 1
+  fi
+}
+
+package() {
+  # Install resource files
+  install -dm 755 "$pkgdir"/usr/lib/$pkgname
+  cp -r --no-preserve=ownership --preserve=mode VSCode-linux-$_vscode_arch/resources/app/* "$pkgdir"/usr/lib/$pkgname/
+
+  # replace statically included binary with system copy
+  ln -sf /usr/bin/rg "$pkgdir"/usr/lib/code/node_modules.asar.unpacked/vscode-ripgrep/bin/rg
+
+  # Install binary
+  install -Dm 755 code.sh "$pkgdir"/usr/bin/code-oss
+  install -Dm 755 code.js "$pkgdir"/usr/lib/$pkgname/code.js
+  ln -sf /usr/bin/code-oss "$pkgdir"/usr/bin/code
+
+  # Install appdata and desktop file
+  install -Dm 644 code/resources/linux/code.appdata.xml "$pkgdir"/usr/share/metainfo/code-oss.appdata.xml
+  install -Dm 644 code/resources/linux/code.desktop "$pkgdir"/usr/share/applications/code-oss.desktop
+  install -Dm 644 VSCode-linux-$_vscode_arch/resources/app/resources/linux/code.png "$pkgdir"/usr/share/pixmaps/code-oss.png
+
+  # Install license files
+  install -Dm 644 VSCode-linux-$_vscode_arch/resources/app/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm 644 VSCode-linux-$_vscode_arch/resources/app/ThirdPartyNotices.txt "$pkgdir"/usr/share/licenses/$pkgname/ThirdPartyNotices.txt
+}

Deleted: code-liveshare.diff
===================================================================
--- code-liveshare.diff	2019-04-06 16:01:31 UTC (rev 449997)
+++ code-liveshare.diff	2019-04-06 16:03:27 UTC (rev 449998)
@@ -1,12 +0,0 @@
-diff --git a/product.json b/product.json
-index b250c66fc4..8a9befcfbb 100644
---- a/product.json
-+++ b/product.json
-@@ -19,6 +19,7 @@
- 	"reportIssueUrl": "https://github.com/Microsoft/vscode/issues/new",
- 	"urlProtocol": "code-oss",
- 	"extensionAllowedProposedApi": [
-+		"ms-vsliveshare.vsliveshare",
- 		"ms-vscode.references-view"
- 	],
- 	"quality": "stable",

Copied: code/repos/community-testing-x86_64/code-liveshare.diff (from rev 449997, code/trunk/code-liveshare.diff)
===================================================================
--- code-liveshare.diff	                        (rev 0)
+++ code-liveshare.diff	2019-04-06 16:03:27 UTC (rev 449998)
@@ -0,0 +1,12 @@
+diff --git a/product.json b/product.json
+index b250c66fc4..8a9befcfbb 100644
+--- a/product.json
++++ b/product.json
+@@ -19,6 +19,7 @@
+ 	"reportIssueUrl": "https://github.com/Microsoft/vscode/issues/new",
+ 	"urlProtocol": "code-oss",
+ 	"extensionAllowedProposedApi": [
++		"ms-vsliveshare.vsliveshare",
+ 		"ms-vscode.references-view"
+ 	],
+ 	"quality": "stable",

Deleted: code.js
===================================================================
--- code.js	2019-04-06 16:01:31 UTC (rev 449997)
+++ code.js	2019-04-06 16:03:27 UTC (rev 449998)
@@ -1,29 +0,0 @@
-#!/usr/bin/electron
-
-const name = 'code-oss';
-
-const app = require('electron').app;
-const path = require('path');
-const fs = require("fs");
-
-// Change command name.
-const fd = fs.openSync("/proc/self/comm", fs.constants.O_WRONLY);
-fs.writeSync(fd, name);
-fs.closeSync(fd);
-
-// Remove first command line argument (/usr/lib/code/code.js). - We call the CLI file first
-process.argv.splice(0, 1);
-
-// Set application paths.
-const appPath = __dirname;
-const packageJson = require(path.join(appPath, 'package.json'));
-app.setAppPath(appPath);
-app.setDesktopName(name + '.desktop');
-app.setName(name);
-app.setPath('userCache', path.join(app.getPath('cache'), name));
-app.setPath('userData', path.join(app.getPath('appData'), name));
-app.setVersion(packageJson.version);
-
-// Run the application.
-require('module')._load(appPath, module, true);
-

Copied: code/repos/community-testing-x86_64/code.js (from rev 449997, code/trunk/code.js)
===================================================================
--- code.js	                        (rev 0)
+++ code.js	2019-04-06 16:03:27 UTC (rev 449998)
@@ -0,0 +1,29 @@
+#!/usr/bin/electron
+
+const name = 'code-oss';
+
+const app = require('electron').app;
+const path = require('path');
+const fs = require("fs");
+
+// Change command name.
+const fd = fs.openSync("/proc/self/comm", fs.constants.O_WRONLY);
+fs.writeSync(fd, name);
+fs.closeSync(fd);
+
+// Remove first command line argument (/usr/lib/code/code.js). - We call the CLI file first
+process.argv.splice(0, 1);
+
+// Set application paths.
+const appPath = __dirname;
+const packageJson = require(path.join(appPath, 'package.json'));
+app.setAppPath(appPath);
+app.setDesktopName(name + '.desktop');
+app.setName(name);
+app.setPath('userCache', path.join(app.getPath('cache'), name));
+app.setPath('userData', path.join(app.getPath('appData'), name));
+app.setVersion(packageJson.version);
+
+// Run the application.
+require('module')._load(appPath, module, true);
+

Deleted: code.sh
===================================================================
--- code.sh	2019-04-06 16:01:31 UTC (rev 449997)
+++ code.sh	2019-04-06 16:03:27 UTC (rev 449998)
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-ELECTRON_RUN_AS_NODE=1 exec electron /usr/lib/code/out/cli.js /usr/lib/code/code.js "$@"

Copied: code/repos/community-testing-x86_64/code.sh (from rev 449997, code/trunk/code.sh)
===================================================================
--- code.sh	                        (rev 0)
+++ code.sh	2019-04-06 16:03:27 UTC (rev 449998)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+ELECTRON_RUN_AS_NODE=1 exec electron /usr/lib/code/out/cli.js /usr/lib/code/code.js "$@"

Deleted: product_json.diff
===================================================================
--- product_json.diff	2019-04-06 16:01:31 UTC (rev 449997)
+++ product_json.diff	2019-04-06 16:03:27 UTC (rev 449998)
@@ -1,20 +0,0 @@
---- product.json	2019-04-06 13:26:49.879655883 +0100
-+++ product.json	2019-04-06 13:26:37.399656243 +0100
-@@ -1,4 +1,17 @@
- {
-+	"quality": "stable",
-+	"extensionsGallery": {
-+		"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
-+		"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
-+		"itemUrl": "https://marketplace.visualstudio.com/items"
-+	},
-+	"documentationUrl": "https://code.visualstudio.com/docs",
-+	"requestFeatureUrl": "https://github.com/Microsoft/vscode/issues",
-+	"introductoryVideosUrl": "https://go.microsoft.com/fwlink/?linkid=832146",
-+	"tipsAndTricksUrl": "https://go.microsoft.com/fwlink/?linkid=852118",
-+	"keyboardShortcutsUrlLinux": "https://go.microsoft.com/fwlink/?linkid=832144",
-+	"commit": "@COMMIT@",
-+	"date": "@DATE@",
- 	"nameShort": "Code - OSS",
- 	"nameLong": "Code - OSS",
- 	"applicationName": "code-oss",

Copied: code/repos/community-testing-x86_64/product_json.diff (from rev 449997, code/trunk/product_json.diff)
===================================================================
--- product_json.diff	                        (rev 0)
+++ product_json.diff	2019-04-06 16:03:27 UTC (rev 449998)
@@ -0,0 +1,20 @@
+--- product.json	2019-04-06 13:26:49.879655883 +0100
++++ product.json	2019-04-06 13:26:37.399656243 +0100
+@@ -1,4 +1,17 @@
+ {
++	"quality": "stable",
++	"extensionsGallery": {
++		"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
++		"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
++		"itemUrl": "https://marketplace.visualstudio.com/items"
++	},
++	"documentationUrl": "https://code.visualstudio.com/docs",
++	"requestFeatureUrl": "https://github.com/Microsoft/vscode/issues",
++	"introductoryVideosUrl": "https://go.microsoft.com/fwlink/?linkid=832146",
++	"tipsAndTricksUrl": "https://go.microsoft.com/fwlink/?linkid=852118",
++	"keyboardShortcutsUrlLinux": "https://go.microsoft.com/fwlink/?linkid=832144",
++	"commit": "@COMMIT@",
++	"date": "@DATE@",
+ 	"nameShort": "Code - OSS",
+ 	"nameLong": "Code - OSS",
+ 	"applicationName": "code-oss",



More information about the arch-commits mailing list