Github messages for voidlinux
 help / color / mirror / Atom feed
From: endigma <endigma@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: vscode-official-1.81.1
Date: Sun, 20 Aug 2023 22:07:28 +0200	[thread overview]
Message-ID: <20230820200728.hG-2fl7FRZNiL-T6YgXrtaLtxtKWbz8MdpJfAlUbafA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45669@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 829 bytes --]

There is an updated pull request by endigma against master on the void-packages repository

https://github.com/endigma/void-packages master
https://github.com/void-linux/void-packages/pull/45669

New package: vscode-official-1.81.1
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (linux-x64-glibc)

#### Notes

This PR differs from `vscode` in that it isn't Code-OSS, which is required for some extensions and by extension workplaces and users. 


A patch file from https://github.com/void-linux/void-packages/pull/45669.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-45669.patch --]
[-- Type: text/x-diff, Size: 4569 bytes --]

From c6cf597ab4460a688f0477b65846b458fd747151 Mon Sep 17 00:00:00 2001
From: endigma <endigma@mailcat.ca>
Date: Sat, 19 Aug 2023 09:54:31 -0300
Subject: [PATCH 1/2] New package: vscode-official-1.81.1

---
 .../files/code-url-handler.desktop            | 12 +++++++
 .../vscode-official/files/code-workspace.xml  |  7 ++++
 srcpkgs/vscode-official/files/code.desktop    | 18 ++++++++++
 srcpkgs/vscode-official/template              | 34 +++++++++++++++++++
 4 files changed, 71 insertions(+)
 create mode 100644 srcpkgs/vscode-official/files/code-url-handler.desktop
 create mode 100644 srcpkgs/vscode-official/files/code-workspace.xml
 create mode 100755 srcpkgs/vscode-official/files/code.desktop
 create mode 100644 srcpkgs/vscode-official/template

diff --git a/srcpkgs/vscode-official/files/code-url-handler.desktop b/srcpkgs/vscode-official/files/code-url-handler.desktop
new file mode 100644
index 0000000000000..cf3a83263d7c2
--- /dev/null
+++ b/srcpkgs/vscode-official/files/code-url-handler.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Name=Visual Studio Code - URL Handler
+Comment=Code Editing. Redefined.
+GenericName=Text Editor
+Exec=/opt/code/code --open-url %U
+Icon=com.visualstudio.code
+Type=Application
+NoDisplay=true
+StartupNotify=true
+Categories=Utility;TextEditor;Development;IDE;
+MimeType=x-scheme-handler/vscode;
+Keywords=vscode;
diff --git a/srcpkgs/vscode-official/files/code-workspace.xml b/srcpkgs/vscode-official/files/code-workspace.xml
new file mode 100644
index 0000000000000..54c4d613af67f
--- /dev/null
+++ b/srcpkgs/vscode-official/files/code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+	<mime-type type="application/x-code-workspace">
+		<comment>Visual Studio Code Workspace</comment>
+		<glob pattern="*.code-workspace"/>
+	</mime-type>
+</mime-info>
diff --git a/srcpkgs/vscode-official/files/code.desktop b/srcpkgs/vscode-official/files/code.desktop
new file mode 100755
index 0000000000000..c115aea9423ff
--- /dev/null
+++ b/srcpkgs/vscode-official/files/code.desktop
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Name=Visual Studio Code
+Comment=Code Editing. Redefined.
+GenericName=Text Editor
+Exec=/opt/code/code %F
+Icon=com.visualstudio.code
+Type=Application
+StartupNotify=false
+StartupWMClass=Code
+Categories=Utility;TextEditor;Development;IDE;
+MimeType=text/plain;inode/directory;application/x-code-workspace;
+Actions=new-empty-window;
+Keywords=vscode;
+
+[Desktop Action new-empty-window]
+Name=New Empty Window
+Exec=/usr/share/code/code --new-window %F
+Icon=com.visualstudio.code
diff --git a/srcpkgs/vscode-official/template b/srcpkgs/vscode-official/template
new file mode 100644
index 0000000000000..28cff670acde8
--- /dev/null
+++ b/srcpkgs/vscode-official/template
@@ -0,0 +1,34 @@
+# Template file for 'vscode-official'
+pkgname=vscode-official
+version=1.81.1
+revision=1
+short_desc="Microsoft Visual Studio Code for Linux"
+maintainer="PWA <pwa@cya.cx>"
+license="MIT"
+nopie=yes
+makedepends="tar"
+wrksrc="VSCode-linux-x64"
+repository=nonfree
+homepage="https://code.visualstudio.com/"
+distfiles="https://update.code.visualstudio.com/${version}/linux-x64/stable>vscode-${version}.tar.gz"
+
+checksum=13701da8dbd8e00ac3f8a7ea089c861a0249196c468e1a10f85e351bc236d417
+
+do_install() {
+	vmkdir opt/code
+
+	vcopy * opt/code/
+
+	vmkdir usr/bin
+    
+	vmkdir usr/share/applications
+
+	vinstall ${FILESDIR}/code.desktop 755 usr/share/applications/
+	vinstall ${FILESDIR}/code-url-handler.desktop 755 usr/share/applications/
+
+	chmod -R o-w ${DESTDIR}/opt/code/resources/app/
+}
+
+post_install() {
+    ln -sf /opt/code/bin/code $DESTDIR/usr/bin/code
+}

From acd5703105fe3517a10c3a9d3f7f9d24d91620b0 Mon Sep 17 00:00:00 2001
From: endigma <endigma@mailcat.ca>
Date: Sun, 20 Aug 2023 17:07:11 -0300
Subject: [PATCH 2/2] fix checksum

---
 srcpkgs/vscode-official/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/vscode-official/template b/srcpkgs/vscode-official/template
index 28cff670acde8..bbe93d2b485a9 100644
--- a/srcpkgs/vscode-official/template
+++ b/srcpkgs/vscode-official/template
@@ -12,7 +12,7 @@ repository=nonfree
 homepage="https://code.visualstudio.com/"
 distfiles="https://update.code.visualstudio.com/${version}/linux-x64/stable>vscode-${version}.tar.gz"
 
-checksum=13701da8dbd8e00ac3f8a7ea089c861a0249196c468e1a10f85e351bc236d417
+checksum=4ea6b0aaed22474027dc2678c774461b4bc3df1fcfbd0c918554e173a4af7448
 
 do_install() {
 	vmkdir opt/code

  parent reply	other threads:[~2023-08-20 20:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-19 13:00 [PR PATCH] " endigma
2023-08-19 14:11 ` paper42
2023-08-20 11:27 ` endigma
2023-08-20 11:31 ` endigma
2023-08-20 20:07 ` endigma [this message]
2023-08-20 20:07 ` [PR PATCH] [Updated] " endigma
2023-08-20 20:08 ` endigma
2023-08-20 20:10 ` endigma
2023-08-20 20:20 ` endigma
2023-08-20 20:21 ` endigma
2023-08-20 20:23 ` endigma
2023-08-20 20:23 ` endigma
2023-08-20 20:27 ` [PR PATCH] [Updated] " endigma
2023-08-22 16:58 ` endigma
2023-08-26  7:55 ` sgn
2023-08-26 12:41 ` endigma
2023-08-26 12:42 ` endigma
2023-08-26 12:42 ` endigma
2023-08-26 13:57 ` sgn
2023-08-26 13:57 ` [PR PATCH] [Closed]: " sgn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230820200728.hG-2fl7FRZNiL-T6YgXrtaLtxtKWbz8MdpJfAlUbafA@z \
    --to=endigma@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).