c7a8610c3f
Closes: #10620 [via git-merge-pr]
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Template file for 'discord'
|
|
# Originally created by Benjamin Hoffmeyer, modified for stable Discord
|
|
|
|
pkgname="discord"
|
|
version="0.0.4"
|
|
revision=1
|
|
depends="alsa-lib dbus-glib gtk+3 GConf libnotify nss libXtst libcxx libatomic"
|
|
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="8b62e49088d3bf525ab07ba6a64ec3f1c8c7c252a9c13178d060efb0674e9caa"
|
|
|
|
do_install() {
|
|
local package_location="usr/lib/$pkgname" item
|
|
vmkdir usr/share/pixmaps
|
|
vcopy discord.png /usr/share/pixmaps/
|
|
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
|
|
vmkdir usr/bin
|
|
ln -sfr $DESTDIR/${package_location}/Discord $DESTDIR/usr/bin/Discord
|
|
}
|
|
post_install() {
|
|
vlicense $FILESDIR/LICENSE
|
|
}
|