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

37 lines
1.1 KiB
Bash
Raw Normal View History

2024-03-29 08:12:19 +01:00
# Template file for 'vesktop'
pkgname='vesktop'
2024-12-14 17:25:29 +01:00
version='1.5.4'
2024-03-29 08:12:19 +01:00
revision='1'
arch='x86_64'
short_desc='Vesktop gives you the performance of web Discord and the comfort of Discord Desktop'
2024-07-23 23:12:38 +02:00
maintainer="Jozef Steinhübl <contact@xhyrom.dev>"
2024-03-29 08:12:19 +01:00
homepage='https://vencord.dev'
license='GPL3'
2024-12-14 17:25:29 +01:00
depends="electron33"
hostmakedepends="electron33"
2024-03-29 08:12:19 +01:00
makedepends="pnpm git"
distfiles="https://github.com/Vencord/Vesktop/archive/refs/tags/v${version}.tar.gz"
2024-12-14 17:25:29 +01:00
checksum="ad43c34a8623ceee9565b41bc0f7cc7ffa3a105d73c0620cc9ed4ab8b416c728"
2024-03-29 08:12:19 +01:00
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
2024-12-14 17:25:29 +01:00
sed -i '/linux/s/^/ "electronDist": "\/usr\/lib\/electron33",\n/' "package.json"
2024-03-29 08:12:19 +01:00
2024-05-04 10:13:37 +02:00
COREPACK_ENABLE_STRICT="0" pnpm install
COREPACK_ENABLE_STRICT="0" pnpm package:dir
2024-03-29 08:12:19 +01:00
}
do_install() {
vmkdir "usr/lib/${pkgname}"
vcopy "dist/linux-unpacked/resources/app.asar" "usr/lib/${pkgname}"
vinstall "${FILESDIR}/${pkgname}" 755 "usr/bin"
vlicense "LICENSE"
}