2017-02-07 04:33:42 +01:00
|
|
|
# Template file for 'discord'
|
|
|
|
# Originally created by Benjamin Hoffmeyer, modified for stable Discord
|
|
|
|
|
|
|
|
pkgname="discord"
|
|
|
|
version="0.0.1"
|
2017-02-14 01:29:54 +01:00
|
|
|
revision=3
|
2017-02-07 04:33:42 +01:00
|
|
|
depends="alsa-lib dbus-glib gtk+3 GConf libnotify nss libXtst"
|
|
|
|
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"
|
|
|
|
checksum="ba0ff3c57d7ab3a5e47a91bd23a79758085147e88fa0c65529bcf50a778fa382"
|
2017-02-14 01:29:54 +01:00
|
|
|
_package_location="/usr/lib/$pkgname"
|
2017-02-07 04:33:42 +01:00
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vmkdir /usr/share/pixmaps
|
|
|
|
vcopy discord.png /usr/share/pixmaps/
|
2017-02-14 01:29:54 +01:00
|
|
|
vmkdir /usr/share/applications
|
|
|
|
vcopy discord.desktop /usr/share/applications/
|
|
|
|
vmkdir ${_package_location}
|
|
|
|
for item in locales resources Discord libffmpeg.so libnode.so natives_blob.bin snapshot_blob.bin content_shell.pak icudtl.dat; do
|
|
|
|
vcopy "${item}" "${_package_location}"
|
|
|
|
done
|
2017-02-07 04:33:42 +01:00
|
|
|
vmkdir /usr/bin
|
2017-02-14 01:29:54 +01:00
|
|
|
ln -sfr $DESTDIR${_package_location}/Discord $DESTDIR/usr/bin/Discord
|
2017-02-07 04:33:42 +01:00
|
|
|
}
|
|
|
|
post_install() {
|
|
|
|
vlicense $FILESDIR/LICENSE
|
|
|
|
}
|