Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions vup/srcpkgs/communication/vesktop/files/vesktop.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Desktop Entry]
Name=Vesktop
GenericName=Internet Messenger
Comment=Client for Discord with improved Linux support
Version=1.6.7
Icon=vesktop
Exec=/usr/bin/vesktop %U
StartupWMClass=vesktop
Terminal=false
Type=Application
Categories=Network;
Keywords=discord;vencord;vesktop;chat;electron
MimeType=x-scheme-handler/discord
12 changes: 12 additions & 0 deletions vup/srcpkgs/communication/vesktop/files/vesktop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}

# Allow users to override command-line options
if [ -f "$XDG_CONFIG_HOME/vesktop-flags.conf" ]; then
VESKTOP_USER_FLAGS="$(grep -v '^#' "$XDG_CONFIG_HOME/vesktop-flags.conf")"
fi

# Launch (each word in VESKTOP_USER_FLAGS must be split)
# shellcheck disable=SC2086
exec /usr/lib/vesktop/vesktop $VESKTOP_USER_FLAGS "$@"
38 changes: 38 additions & 0 deletions vup/srcpkgs/communication/vesktop/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Template file for 'vesktop'
pkgname=vesktop
version=1.6.7
revision=1
archs="x86_64 aarch64"
short_desc="Client for Discord with improved Linux support"
license="GPL-3.0-or-later"
homepage="https://github.com/Vencord/Vesktop"
distfiles="https://github.com/Vencord/Vesktop/archive/refs/tags/v${version}.tar.gz"
maintainer="forkfoundinkitchenn <littlebluubird@proton.me>"
depends="alsa-lib gtk+3 nss libnotify xdg-utils"
hostmakedepends="nodejs pnpm git"
checksum="8c0dbd65e85f46797bc89591a92f8677e2565ea51cd96f661f1dd5da74c819d1"

case "$XBPS_TARGET_MACHINE" in
x86_64)
folder="linux-unpacked"
;;
aarch64)
folder="linux-arm64-unpacked"
;;
esac

do_build () {
pnpm i --frozen-lockfile
pnpm package:dir
}

do_install () {
vmkdir usr/lib/vesktop
vmkdir usr/bin

vcopy "dist/${folder}/*" usr/lib/vesktop
vinstall "${FILESDIR}/vesktop.desktop" 644 usr/share/applications/
vinstall "build/icon.svg" 644 usr/share/icons/hicolor/scalable/apps vesktop.svg
vinstall "${FILESDIR}/vesktop.sh" 755 usr/bin/ vesktop
vlicense "LICENSE"
}