1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-12-22 12:11:06 +01:00

update vesktop & xbps-src

This commit is contained in:
Jozef Steinhübl 2024-05-04 10:13:37 +02:00
parent a7c144401d
commit 176edd7338
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
2 changed files with 16 additions and 8 deletions

View file

@ -1,7 +1,7 @@
# Template file for 'vesktop'
pkgname='vesktop'
version='1.5.1'
version='1.5.2'
revision='1'
arch='x86_64'
short_desc='Vesktop gives you the performance of web Discord and the comfort of Discord Desktop'
@ -13,7 +13,7 @@ hostmakedepends="electron24"
makedepends="pnpm git"
distfiles="https://github.com/Vencord/Vesktop/archive/refs/tags/v${version}.tar.gz"
checksum="28f2fdc9a5d017446ad59f119dad0e2e649692d46c6ce8330891e7f0c725a33f"
checksum="2795891c71d3ec39fd412cf1396a3172499b58619b2e7f92ce81de3db19d5de7"
do_build() {
export SYSTEM_ELECTRON_VERSION=$(</usr/lib/electron24/version)
@ -21,8 +21,8 @@ do_build() {
sed -i 's/"electron": "^\([0-9]\+\.\)\{2\}[0-9]\+"/"electron": "'"${SYSTEM_ELECTRON_VERSION}"'"/g' package.json
sed -i '/linux/s/^/ "electronDist": "\/usr\/lib\/electron24",\n/' "package.json"
pnpm install
pnpm package:dir
COREPACK_ENABLE_STRICT="0" pnpm install
COREPACK_ENABLE_STRICT="0" pnpm package:dir
}
do_install() {

View file

@ -101,6 +101,9 @@ show-avail <pkgname>
show-build-deps <pkgname>
Show required build dependencies for <pkgname>.
show-check-deps <pkgname>
Show required check dependencies for <pkgname>.
show-deps <pkgname>
Show required run-time dependencies for <pkgname>. Package must be
installed into destdir.
@ -565,13 +568,14 @@ if [ -d "$XBPS_MASTERDIR" -a ! -w "$XBPS_MASTERDIR" ]; then
fi
# Try using chroot-git then git from the host system
if command -v chroot-git &>/dev/null; then
export XBPS_GIT_CMD=$(command -v chroot-git)
elif command -v git &>/dev/null; then
export XBPS_GIT_CMD=$(command -v git)
XBPS_GIT_CMD="$(PATH="/usr/libexec/chroot-git:$PATH:$XBPS_MASTERDIR/usr/libexec/chroot-git" command -v git 2>/dev/null)"
if [ -n "$XBPS_GIT_CMD" ]; then
export XBPS_GIT_CMD
elif [ -z "$XBPS_USE_BUILD_MTIME" ] || [ "$XBPS_USE_GIT_REVS" ]; then
echo "neither chroot-git or git are available in your system!" 1>&2
exit 1
else
unset XBPS_GIT_CMD
fi
if [ -n "$XBPS_HOSTDIR" ]; then
@ -904,6 +908,10 @@ case "$XBPS_TARGET" in
read_pkg ignore-problems
show_pkg_makedepends
;;
show-checkdepends)
read_pkg ignore-problems
show_pkg_checkdepends
;;
show-pkg-var-dump)
read_pkg ignore-problems
for sub_name in $subpackages; do