From 87cf998bf64c230323c194e2ccbbe0e5f92c0254 Mon Sep 17 00:00:00 2001 From: minicx 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 " +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