43 lines
1.5 KiB
Bash
43 lines
1.5 KiB
Bash
name='vesktop-bin'
|
|
version='1.5.1'
|
|
release='5'
|
|
desc='A cross platform electron-based desktop app aiming to give you a snappier Discord experience with Vencord pre-installed'
|
|
homepage='https://github.com/Vencord/Vesktop'
|
|
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
|
architectures=('amd64')
|
|
license=('GPL-3.0-only')
|
|
provides=('vencord-bin')
|
|
conflicts=('vencord' 'vencord-bin')
|
|
|
|
deps=('electron')
|
|
build_deps=('pnpm' 'git' 'electron')
|
|
|
|
opt_deps=(
|
|
'libnotify: Notifications'
|
|
'xdg-utils: Open links, files, etc'
|
|
'xdg-desktop-portal: Screensharing with Wayland'
|
|
'arrpc: Rich presence support'
|
|
)
|
|
|
|
sources=("https://github.com/Vencord/Vesktop/releases/download/v${version}/vesktop_${version}_amd64.deb" )
|
|
checksums=('SKIP')
|
|
|
|
build() {
|
|
bsdtar -xf vesktop_${version}_amd64.deb
|
|
sed -e "s|@appname@|vesktop|g" \
|
|
-e "s|@runname@|app.asar|g" \
|
|
-e "s|@options@|env ELECTRON_OZONE_PLA4TFORM_HINT=auto|g" \
|
|
-i "${scriptdir}/vesktop.sh"
|
|
bsdtar -xf "${srcdir}/data."*
|
|
sed "s|/opt/Vesktop/vesktop|vesktop|g" -i "${srcdir}/usr/share/applications/vesktop.desktop"
|
|
}
|
|
package() {
|
|
install -Dm755 "${scriptdir}/vesktop.sh" "${pkgdir}/usr/bin/vesktop"
|
|
install -Dm644 "${srcdir}/opt/Vesktop/resources/app.asar" -t "${pkgdir}/usr/lib/vesktop"
|
|
install -Dm644 "${srcdir}/usr/share/applications/vesktop.desktop" -t "${pkgdir}/usr/share/applications"
|
|
for _icons in 16x16 32x32 48x48 64x64 128x128 256x256 512x512 1024x1024;do
|
|
install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/vesktop.png" \
|
|
-t "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps"
|
|
done
|
|
}
|