57 lines
1.4 KiB
Bash
57 lines
1.4 KiB
Bash
# Template file for 'discord-ptb'
|
|
pkgname=discord-ptb
|
|
version=0.0.94
|
|
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=c2a246383e0acacd1792a194d61c6308f3246a96e05f99308c1e0b46d96fa3c5
|
|
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
|
|
}
|