This commit is contained in:
2024-04-15 22:46:48 +03:00
parent 39046fe1f2
commit 4f45d2d875
13 changed files with 148 additions and 154 deletions

View File

@ -13,34 +13,34 @@ deps=('electron')
deps_redos=('electron')
build_deps=('pnpm' 'git')
optdepends=(
'libnotify: Notifications'
'xdg-utils: Open links, files, etc'
'xdg-desktop-portal: Screensharing with Wayland'
'arrpc: Rich presence support'
'libnotify: Notifications'
'xdg-utils: Open links, files, etc'
'xdg-desktop-portal: Screensharing with Wayland'
'arrpc: Rich presence support'
)
sources=("https://github.com/Vencord/Vesktop/archive/refs/tags/v${version}.tar.gz")
checksums=('SKIP')
prepare() {
sed -i '/linux/s/^/ "electronDist": "\/usr\/lib\/electron",\n/' "$srcdir/$_pkgname-$pkgver/package.json"
sed -i '/linux/s/^/ "electronDist": "\/usr\/lib\/electron",\n/' "$srcdir/$_pkgname-$pkgver/package.json"
}
build() {
cd ${srcdir}
pnpm install
pnpm package:dir
}
cd ${srcdir}
pnpm install
pnpm package:dir
}
package() {
cd "${srcdir}"
install -d "${pkgdir}/usr/lib/${pkgname}"
install -d "${pkgdir}/usr/bin"
cd "${srcdir}"
install -d "${pkgdir}/usr/lib/${pkgname}"
install -d "${pkgdir}/usr/bin"
cp "$_pkgname-$pkgver/dist/linux-unpacked/resources/app.asar" "${pkgdir}/usr/lib/${pkgname}/"
install -Dm755 "./vesktop.sh" "$pkgdir/usr/bin/vesktop"
cp "$_pkgname-$pkgver/dist/linux-unpacked/resources/app.asar" "${pkgdir}/usr/lib/${pkgname}/"
install -Dm755 "./vesktop.sh" "$pkgdir/usr/bin/vesktop"
install -Dm 644 "vesktop.desktop" "$pkgdir/usr/share/applications/vesktop.desktop"
install -Dm 644 "$_pkgname-$pkgver/static/icon.png" "$pkgdir/usr/share/pixmaps/${pkgname}.png"
install -Dm 644 "$_pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm 644 "vesktop.desktop" "$pkgdir/usr/share/applications/vesktop.desktop"
install -Dm 644 "$_pkgname-$pkgver/static/icon.png" "$pkgdir/usr/share/pixmaps/${pkgname}.png"
install -Dm 644 "$_pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

View File

@ -4,7 +4,7 @@ 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)"
VESKTOP_USER_FLAGS="$(grep -v '^#' $XDG_CONFIG_HOME/vesktop-flags.conf)"
fi
# Launch