2017-12-13 23:29:34 +01:00
|
|
|
# Template file for 'discord-ptb'
|
|
|
|
pkgname="discord-ptb"
|
2018-06-27 04:08:16 +02:00
|
|
|
version=0.0.9
|
2018-01-08 20:55:13 +01:00
|
|
|
revision=1
|
2017-12-13 23:29:34 +01:00
|
|
|
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"
|
2018-06-27 04:08:16 +02:00
|
|
|
checksum=372d6f75203626370218c97c21519b779e5af334177cafa65a5655e357c77520
|
2017-12-13 23:29:34 +01:00
|
|
|
|
|
|
|
do_install() {
|
|
|
|
local package_location="usr/lib/$pkgname" item
|
|
|
|
vmkdir usr/share/pixmaps
|
2018-01-05 00:22:00 +01:00
|
|
|
vinstall discord.png 644 /usr/share/pixmap/ discord-ptb.png
|
2017-12-13 23:29:34 +01:00
|
|
|
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
|
2018-01-05 00:22:00 +01:00
|
|
|
}
|