Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: vscode-official-1.81.1
@ 2023-08-19 13:00 endigma
  2023-08-19 14:11 ` paper42
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: endigma @ 2023-08-19 13:00 UTC (permalink / raw)
  To: ml

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

There is a new 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 and 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: 3720 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] 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
+}

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2023-08-26 13:57 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-19 13:00 [PR PATCH] New package: vscode-official-1.81.1 endigma
2023-08-19 14:11 ` paper42
2023-08-20 11:27 ` endigma
2023-08-20 11:31 ` endigma
2023-08-20 20:07 ` [PR PATCH] [Updated] " endigma
2023-08-20 20:07 ` 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 ` [PR PATCH] [Closed]: " sgn
2023-08-26 13:57 ` sgn

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).