2017-02-07 03:33:42 +00:00
|
|
|
# Template file for 'discord'
|
|
|
|
# Originally created by Benjamin Hoffmeyer, modified for stable Discord
|
|
|
|
|
|
|
|
pkgname="discord"
|
2017-12-12 19:17:32 +00:00
|
|
|
version="0.0.3"
|
|
|
|
revision=1
|
2017-11-22 21:45:54 +00:00
|
|
|
depends="alsa-lib dbus-glib gtk+3 GConf libnotify nss libXtst libcxx libatomic"
|
2017-02-07 03:33:42 +00:00
|
|
|
wrksrc="Discord"
|
|
|
|
only_for_archs="x86_64"
|
|
|
|
nopie=yes
|
|
|
|
repository=nonfree
|
|
|
|
restricted=yes
|
|
|
|
short_desc="Chat and VOIP application"
|
|
|
|
maintainer="Ryan Conwell <ryanconwell@protonmail.com>"
|
|
|
|
license="proprietary"
|
|
|
|
homepage="https://discordapp.com"
|
|
|
|
distfiles="https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz"
|
2017-12-12 19:17:32 +00:00
|
|
|
checksum="d02d809fe1756c6345815531d291bd65769ffc27dc464e56988ffe7270f2bdfb"
|
2017-02-07 03:33:42 +00:00
|
|
|
|
|
|
|
do_install() {
|
2017-08-09 05:28:14 +00:00
|
|
|
local package_location="usr/lib/$pkgname" item
|
2017-08-09 08:48:27 +00:00
|
|
|
vmkdir usr/share/pixmaps
|
2017-02-07 03:33:42 +00:00
|
|
|
vcopy discord.png /usr/share/pixmaps/
|
2017-08-09 08:48:27 +00:00
|
|
|
vmkdir usr/share/applications
|
2017-02-14 00:29:54 +00:00
|
|
|
vcopy discord.desktop /usr/share/applications/
|
2017-08-09 05:28:14 +00:00
|
|
|
vmkdir ${package_location}
|
2017-02-14 00:29:54 +00:00
|
|
|
for item in locales resources Discord libffmpeg.so libnode.so natives_blob.bin snapshot_blob.bin content_shell.pak icudtl.dat; do
|
2017-08-09 05:28:14 +00:00
|
|
|
vcopy "${item}" "${package_location}"
|
2017-02-14 00:29:54 +00:00
|
|
|
done
|
2017-08-09 08:48:27 +00:00
|
|
|
vmkdir usr/bin
|
|
|
|
ln -sfr $DESTDIR/${package_location}/Discord $DESTDIR/usr/bin/Discord
|
2017-02-07 03:33:42 +00:00
|
|
|
}
|
|
|
|
post_install() {
|
|
|
|
vlicense $FILESDIR/LICENSE
|
|
|
|
}
|