void-packages/srcpkgs/discord-ptb/template

57 lines
1.4 KiB
Bash

# Template file for 'discord-ptb'
pkgname=discord-ptb
version=0.0.85
revision=1
archs="x86_64"
depends="alsa-lib dbus-glib gtk+3 libnotify nss libXtst libcxx libatomic
xdg-utils webrtc-audio-processing libXScrnSaver"
short_desc="Chat and VoIP application (preview version)"
maintainer="0x5c <dev@0x5c.io>"
license="custom:Proprietary"
homepage="https://discord.com/"
distfiles="https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz"
checksum=d91ca297195d257db0a8a94472ba7ab2b8f43bb50d1ccc72491243d7105fa8c9
nopie=yes
restricted=yes
repository=nonfree
nostrip=yes
noshlibprovides=yes
do_install() {
local package_location="usr/lib/$pkgname" item
vmkdir usr/share/pixmaps
vinstall discord.png 644 /usr/share/pixmaps/ discord-ptb.png
vmkdir usr/share/applications
vcopy discord-ptb.desktop /usr/share/applications/
vmkdir ${package_location}
for item in \
DiscordPTB \
chrome-sandbox \
chrome_100_percent.pak \
chrome_200_percent.pak \
chrome_crashpad_handler \
discord.png \
icudtl.dat \
libEGL.so \
libGLESv2.so \
libffmpeg.so \
libvk_swiftshader.so \
libvulkan.so.1 \
locales \
postinst.sh \
resources \
resources.pak \
snapshot_blob.bin \
v8_context_snapshot.bin \
vk_swiftshader_icd.json
do
vcopy "${item}" "${package_location}"
done
vmkdir usr/bin
ln -sfr $DESTDIR/${package_location}/DiscordPTB $DESTDIR/usr/bin/discord-ptb
}
post_install() {
vlicense $FILESDIR/LICENSE
}