mirror of
https://github.com/xHyroM/void-packages.git
synced 2024-11-22 06:31:05 +01:00
35 lines
1 KiB
Bash
35 lines
1 KiB
Bash
# Template file for 'vesktop'
|
|
|
|
pkgname='vesktop'
|
|
version='1.5.3'
|
|
revision='1'
|
|
arch='x86_64'
|
|
short_desc='Vesktop gives you the performance of web Discord and the comfort of Discord Desktop'
|
|
homepage='https://vencord.dev'
|
|
license='GPL3'
|
|
|
|
depends="electron24"
|
|
hostmakedepends="electron24"
|
|
makedepends="pnpm git"
|
|
|
|
distfiles="https://github.com/Vencord/Vesktop/archive/refs/tags/v${version}.tar.gz"
|
|
checksum="2795891c71d3ec39fd412cf1396a3172499b58619b2e7f92ce81de3db19d5de7"
|
|
|
|
do_build() {
|
|
export SYSTEM_ELECTRON_VERSION=$(</usr/lib/electron24/version)
|
|
|
|
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"
|
|
|
|
COREPACK_ENABLE_STRICT="0" pnpm install
|
|
COREPACK_ENABLE_STRICT="0" pnpm package:dir
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir "usr/lib/${pkgname}"
|
|
|
|
vcopy "dist/linux-unpacked/resources/app.asar" "usr/lib/${pkgname}"
|
|
vinstall "${FILESDIR}/${pkgname}" 755 "usr/bin"
|
|
|
|
vlicense "LICENSE"
|
|
}
|