void-packages/srcpkgs/discord-ptb/template
Abel Graham b3af5e2075 discord-ptb: update to 0.0.8
Closes #13653.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-04-20 17:33:25 +02:00

30 lines
1.1 KiB
Bash

# Template file for 'discord-ptb'
pkgname="discord-ptb"
version=0.0.8
revision=1
wrksrc="DiscordPTB"
depends="alsa-lib dbus-glib gtk+3 GConf libnotify nss libXtst libcxx libatomic"
only_for_archs="x86_64"
nopie=yes
repository=nonfree
restricted=yes
short_desc="Proprietary freeware VoIP application"
maintainer="Abel Graham <abel@abelgraham.com>"
license="proprietary"
homepage="https://discordapp.com/"
distfiles="https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz"
checksum=81db9f2b39c980cdc2537831c3bbd60aba615f423b76d9eed0788459f99e6bd2
do_install() {
local package_location="usr/lib/$pkgname" item
vmkdir usr/share/pixmaps
vinstall discord.png 644 /usr/share/pixmap/ discord-ptb.png
vmkdir usr/share/applications
vcopy discord-ptb.desktop /usr/share/applications/
vmkdir ${package_location}
for item in locales resources DiscordPTB libffmpeg.so libnode.so natives_blob.bin snapshot_blob.bin content_shell.pak icudtl.dat; do
vcopy "${item}" "${package_location}"
done
vmkdir usr/bin
ln -sfr $DESTDIR/${package_location}/DiscordPTB $DESTDIR/usr/bin/discord-ptb
}