Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: vscodium-bin-1.79.2.23166
@ 2023-07-02 22:21 loss-and-quick
  2023-07-02 22:35 ` classabbyamp
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: loss-and-quick @ 2023-07-02 22:21 UTC (permalink / raw)
  To: ml

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

There is a new pull request by loss-and-quick against master on the void-packages repository

https://github.com/loss-and-quick/void-packages vscodium-bin
https://github.com/void-linux/void-packages/pull/44805

New package: vscodium-bin-1.79.2.23166
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### 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, (X86_64-GLIBC)
- I built this PR locally for these architectures:
  - aarch64
  - x86_64



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

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

From 87cf998bf64c230323c194e2ccbbe0e5f92c0254 Mon Sep 17 00:00:00 2001
From: minicx <minicx@disroot.org>
Date: Mon, 3 Jul 2023 01:04:41 +0300
Subject: [PATCH] New package: vscodium-bin-1.79.2.23166

---
 .../files/vscodium-bin-uri-handler.desktop    | 12 +++++
 .../files/vscodium-bin-wayland.desktop        | 18 ++++++++
 .../vscodium-bin/files/vscodium-bin.desktop   | 18 ++++++++
 srcpkgs/vscodium-bin/files/vscodium-bin.sh    | 11 +++++
 srcpkgs/vscodium-bin/template                 | 45 +++++++++++++++++++
 5 files changed, 104 insertions(+)
 create mode 100644 srcpkgs/vscodium-bin/files/vscodium-bin-uri-handler.desktop
 create mode 100644 srcpkgs/vscodium-bin/files/vscodium-bin-wayland.desktop
 create mode 100644 srcpkgs/vscodium-bin/files/vscodium-bin.desktop
 create mode 100644 srcpkgs/vscodium-bin/files/vscodium-bin.sh
 create mode 100644 srcpkgs/vscodium-bin/template

diff --git a/srcpkgs/vscodium-bin/files/vscodium-bin-uri-handler.desktop b/srcpkgs/vscodium-bin/files/vscodium-bin-uri-handler.desktop
new file mode 100644
index 000000000000..80711ba94ff2
--- /dev/null
+++ b/srcpkgs/vscodium-bin/files/vscodium-bin-uri-handler.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Name=VSCodium - URL Handler
+Comment=Code Editing. Redefined.
+GenericName=Text Editor
+Exec=/usr/bin/codium --open-url %U
+Icon=vscodium
+Type=Application
+NoDisplay=true
+StartupNotify=false
+Categories=Utility;TextEditor;Development;IDE;
+MimeType=x-scheme-handler/vscode;
+Keywords=vscode;
diff --git a/srcpkgs/vscodium-bin/files/vscodium-bin-wayland.desktop b/srcpkgs/vscodium-bin/files/vscodium-bin-wayland.desktop
new file mode 100644
index 000000000000..2313e0b2bb1e
--- /dev/null
+++ b/srcpkgs/vscodium-bin/files/vscodium-bin-wayland.desktop
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Name=VSCodium - Wayland
+Comment=Code Editing. Redefined.
+GenericName=Text Editor
+Exec=/usr/bin/codium --enable-features=UseOzonePlatform --ozone-platform=wayland --no-sandbox --unity-launch %F
+Icon=vscodium
+Type=Application
+StartupNotify=false
+StartupWMClass=codium-url-handler
+Categories=Utility;Development;IDE;
+MimeType=text/plain;inode/directory;
+Actions=new-empty-window;
+Keywords=vscode;
+
+[Desktop Action new-empty-window]
+Name=New Empty Window
+Exec=/usr/bin/codium --enable-features=UseOzonePlatform --ozone-platform=wayland --no-sandbox --new-window %F
+Icon=vscodium
diff --git a/srcpkgs/vscodium-bin/files/vscodium-bin.desktop b/srcpkgs/vscodium-bin/files/vscodium-bin.desktop
new file mode 100644
index 000000000000..e752d96ecbba
--- /dev/null
+++ b/srcpkgs/vscodium-bin/files/vscodium-bin.desktop
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Name=VSCodium
+Comment=Code Editing. Redefined.
+GenericName=Text Editor
+Exec=/usr/bin/codium --no-sandbox --unity-launch %F
+Icon=vscodium
+Type=Application
+StartupNotify=false
+StartupWMClass=VSCodium
+Categories=Utility;Development;IDE;
+MimeType=text/plain;inode/directory;
+Actions=new-empty-window;
+Keywords=vscode;
+
+[Desktop Action new-empty-window]
+Name=New Empty Window
+Exec=/usr/bin/codium --no-sandbox --new-window %F
+Icon=vscodium
diff --git a/srcpkgs/vscodium-bin/files/vscodium-bin.sh b/srcpkgs/vscodium-bin/files/vscodium-bin.sh
new file mode 100644
index 000000000000..8a3f19015540
--- /dev/null
+++ b/srcpkgs/vscodium-bin/files/vscodium-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/codium-flags.conf ]]; then
+   CODE_USER_FLAGS="$(cat $XDG_CONFIG_HOME/codium-flags.conf)"
+fi
+
+# Launch
+exec /opt/vscodium-bin/bin/codium "$@" $CODE_USER_FLAGS
diff --git a/srcpkgs/vscodium-bin/template b/srcpkgs/vscodium-bin/template
new file mode 100644
index 000000000000..8a1b2cf329d1
--- /dev/null
+++ b/srcpkgs/vscodium-bin/template
@@ -0,0 +1,45 @@
+# Template file for 'vscodium-bin'
+# based on https://aur.archlinux.org/packages/vscodium-bin
+
+pkgname=vscodium-bin
+_pkgname=VSCodium
+version=1.79.2.23166
+license="MIT"
+revision=1
+archs="x86_64 aarch64"
+depends="fontconfig libXtst gtk+3 python cairo alsa-lib nss libgcc libnotify libXScrnSaver glibc>=2.28_4 bash"
+maintainer="mincx <mincx@disroot.org>"
+homepage="https://github.com/${_pkgname}/vscodium"
+short_desc="Binary releases of VS Code without MS branding/telemetry/licensing."
+conflicts="vscodium"
+
+if [ "$XBPS_TARGET_MACHINE" =  "x86_64" ]; then
+    distfiles="${homepage}/releases/download/${version}/${_pkgname}-linux-x64-${version}.tar.gz"
+    checksum="fd6c9b37ae6004fc9e6c459b4d667c9d75105c75ddf5d693eb6e4d8ef56e8fe3"
+else
+    distfiles="${homepage}/releases/download/${version}/${_pkgname}-linux-arm64-${version}.tar.gz"
+    checksum="26dc36e3a96575256ed21b3b52837330990c802e074803dfd547808dc75fb5bb"
+fi
+
+do_install() {
+    vmkdir /opt/$pkgname
+
+    vcopy * /opt/$pkgname
+
+    vbin "$FILESDIR/$pkgname.sh" codium
+    ln -sf /usr/bin/codium $DESTDIR/usr/bin/vscodium
+
+    vinstall "$FILESDIR/$pkgname.desktop" 644 /usr/share/applications
+    vinstall "$FILESDIR/$pkgname-wayland.desktop" 644 /usr/share/applications
+    vinstall "$FILESDIR/$pkgname-uri-handler.desktop" 644 /usr/share/applications
+
+    vinstall "$wrksrc/resources/app/resources/linux/code.png" 644 /usr/share/pixmaps/ vscodium.png
+
+    for shell_path in $(ls -d ${wrksrc}/resources/completions/*/) ; do
+        shell=$(basename $shell_path)
+        completion=$(ls -1 ${shell_path} | head -n 1)
+        vcompletion "$shell_path/$completion" $shell codium
+    done
+    
+    vlicense "resources/app/LICENSE.txt"
+}
\ No newline at end of file

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

* Re: New package: vscodium-bin-1.79.2.23166
  2023-07-02 22:21 [PR PATCH] New package: vscodium-bin-1.79.2.23166 loss-and-quick
@ 2023-07-02 22:35 ` classabbyamp
  2023-07-02 22:35 ` classabbyamp
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: classabbyamp @ 2023-07-02 22:35 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/44805#issuecomment-1616886794

Comment:
our vscode package is already very similar to vscodium (we patch out all telemetry) and it is built to work with system electron.

additionally, using prebuilt binary releases when building from source is possible make this very unlikely to be merged

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

* Re: New package: vscodium-bin-1.79.2.23166
  2023-07-02 22:21 [PR PATCH] New package: vscodium-bin-1.79.2.23166 loss-and-quick
  2023-07-02 22:35 ` classabbyamp
@ 2023-07-02 22:35 ` classabbyamp
  2023-07-02 22:38 ` loss-and-quick
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: classabbyamp @ 2023-07-02 22:35 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/44805#issuecomment-1616886794

Comment:
our `vscode` package is already very similar to vscodium (we patch out all telemetry) and it is built to work with system electron.

additionally, using prebuilt binary releases when building from source is possible make this very unlikely to be merged

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

* Re: New package: vscodium-bin-1.79.2.23166
  2023-07-02 22:21 [PR PATCH] New package: vscodium-bin-1.79.2.23166 loss-and-quick
  2023-07-02 22:35 ` classabbyamp
  2023-07-02 22:35 ` classabbyamp
@ 2023-07-02 22:38 ` loss-and-quick
  2023-07-02 22:38 ` loss-and-quick
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: loss-and-quick @ 2023-07-02 22:38 UTC (permalink / raw)
  To: ml

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

New comment by loss-and-quick on void-packages repository

https://github.com/void-linux/void-packages/pull/44805#issuecomment-1616893046

Comment:
> our `vscode` package is already very similar to vscodium (we patch out all telemetry) and it is built to work with system electron.
> 
> additionally, using prebuilt binary releases when building from source is possible make this very unlikely to be merged

What about dependency on systemd components(`udev` etc)?

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

* Re: New package: vscodium-bin-1.79.2.23166
  2023-07-02 22:21 [PR PATCH] New package: vscodium-bin-1.79.2.23166 loss-and-quick
                   ` (2 preceding siblings ...)
  2023-07-02 22:38 ` loss-and-quick
@ 2023-07-02 22:38 ` loss-and-quick
  2023-07-02 22:40 ` loss-and-quick
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: loss-and-quick @ 2023-07-02 22:38 UTC (permalink / raw)
  To: ml

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

New comment by loss-and-quick on void-packages repository

https://github.com/void-linux/void-packages/pull/44805#issuecomment-1616893046

Comment:
> our `vscode` package is already very similar to vscodium (we patch out all telemetry) and it is built to work with system electron.
> 
> additionally, using prebuilt binary releases when building from source is possible make this very unlikely to be merged

What about dependency on `systemd` components(`udev` etc)?

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

* Re: New package: vscodium-bin-1.79.2.23166
  2023-07-02 22:21 [PR PATCH] New package: vscodium-bin-1.79.2.23166 loss-and-quick
                   ` (3 preceding siblings ...)
  2023-07-02 22:38 ` loss-and-quick
@ 2023-07-02 22:40 ` loss-and-quick
  2023-07-02 23:02 ` loss-and-quick
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: loss-and-quick @ 2023-07-02 22:40 UTC (permalink / raw)
  To: ml

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

New comment by loss-and-quick on void-packages repository

https://github.com/void-linux/void-packages/pull/44805#issuecomment-1616893046

Comment:
> our `vscode` package is already very similar to vscodium (we patch out all telemetry) and it is built to work with system electron.
> 
> additionally, using prebuilt binary releases when building from source is possible make this very unlikely to be merged

What about dependency on `systemd` components(`udev` etc.)?
And is there a need for vscodium then, even if you compile from source?

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

* Re: New package: vscodium-bin-1.79.2.23166
  2023-07-02 22:21 [PR PATCH] New package: vscodium-bin-1.79.2.23166 loss-and-quick
                   ` (4 preceding siblings ...)
  2023-07-02 22:40 ` loss-and-quick
@ 2023-07-02 23:02 ` loss-and-quick
  2023-07-02 23:07 ` classabbyamp
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: loss-and-quick @ 2023-07-02 23:02 UTC (permalink / raw)
  To: ml

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

New comment by loss-and-quick on void-packages repository

https://github.com/void-linux/void-packages/pull/44805#issuecomment-1616893046

Comment:
> our `vscode` package is already very similar to vscodium (we patch out all telemetry) and it is built to work with system electron.
> 
> additionally, using prebuilt binary releases when building from source is possible make this very unlikely to be merged

And is there a need for vscodium then, even if you compile from source?

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

* Re: New package: vscodium-bin-1.79.2.23166
  2023-07-02 22:21 [PR PATCH] New package: vscodium-bin-1.79.2.23166 loss-and-quick
                   ` (5 preceding siblings ...)
  2023-07-02 23:02 ` loss-and-quick
@ 2023-07-02 23:07 ` classabbyamp
  2023-07-02 23:11 ` [PR PATCH] [Closed]: " loss-and-quick
  2023-08-20  5:38 ` HanoJing
  8 siblings, 0 replies; 10+ messages in thread
From: classabbyamp @ 2023-07-02 23:07 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/44805#issuecomment-1616945338

Comment:
see also:

https://github.com/void-linux/void-packages/pull/10640

https://github.com/void-linux/void-packages/pull/18314

> AFAICT this is the only change sans rebranding vscodium does, so this should address issue #10582

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

* Re: [PR PATCH] [Closed]: New package: vscodium-bin-1.79.2.23166
  2023-07-02 22:21 [PR PATCH] New package: vscodium-bin-1.79.2.23166 loss-and-quick
                   ` (6 preceding siblings ...)
  2023-07-02 23:07 ` classabbyamp
@ 2023-07-02 23:11 ` loss-and-quick
  2023-08-20  5:38 ` HanoJing
  8 siblings, 0 replies; 10+ messages in thread
From: loss-and-quick @ 2023-07-02 23:11 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

New package: vscodium-bin-1.79.2.23166
https://github.com/void-linux/void-packages/pull/44805

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### 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, (X86_64-GLIBC)
- I built this PR locally for these architectures:
  - aarch64
  - x86_64



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

* Re: New package: vscodium-bin-1.79.2.23166
  2023-07-02 22:21 [PR PATCH] New package: vscodium-bin-1.79.2.23166 loss-and-quick
                   ` (7 preceding siblings ...)
  2023-07-02 23:11 ` [PR PATCH] [Closed]: " loss-and-quick
@ 2023-08-20  5:38 ` HanoJing
  8 siblings, 0 replies; 10+ messages in thread
From: HanoJing @ 2023-08-20  5:38 UTC (permalink / raw)
  To: ml

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

New comment by HanoJing on void-packages repository

https://github.com/void-linux/void-packages/pull/44805#issuecomment-1685183214

Comment:
> our `vscode` package is already very similar to vscodium (we patch out all telemetry) and it is built to work with system electron.
> 
> additionally, using prebuilt binary releases when building from source is possible make this very unlikely to be merged

That's great to hear, will vscode be available for ARM64 in the future?
Thanks in advance!

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

end of thread, other threads:[~2023-08-20  5:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-02 22:21 [PR PATCH] New package: vscodium-bin-1.79.2.23166 loss-and-quick
2023-07-02 22:35 ` classabbyamp
2023-07-02 22:35 ` classabbyamp
2023-07-02 22:38 ` loss-and-quick
2023-07-02 22:38 ` loss-and-quick
2023-07-02 22:40 ` loss-and-quick
2023-07-02 23:02 ` loss-and-quick
2023-07-02 23:07 ` classabbyamp
2023-07-02 23:11 ` [PR PATCH] [Closed]: " loss-and-quick
2023-08-20  5:38 ` HanoJing

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