37 lines
1.3 KiB
Bash
37 lines
1.3 KiB
Bash
# Template file for 'discord'
|
|
# Originally created by Benjamin Hoffmeyer, modified for stable Discord
|
|
|
|
pkgname=discord
|
|
version=0.0.9
|
|
revision=1
|
|
depends="alsa-lib dbus-glib gtk+3 GConf libnotify nss libXtst libcxx libatomic"
|
|
wrksrc="Discord"
|
|
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=4e5b955768cb35c0d1564e3bfb174470efc97028a1c38046770266105a440ec4
|
|
|
|
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}
|
|
chmod +x Discord
|
|
for item in locales resources Discord libffmpeg.so natives_blob.bin snapshot_blob.bin icudtl.dat libEGL.so libGLESv2.so chrome_100_percent.pak chrome_200_percent.pak libVkICD_mock_icd.so resources.pak swiftshader v8_context_snapshot.bin; do
|
|
vcopy "${item}" "${package_location}"
|
|
done
|
|
vmkdir usr/bin
|
|
ln -sfr $DESTDIR/${package_location}/Discord $DESTDIR/usr/bin/Discord
|
|
}
|
|
post_install() {
|
|
vlicense $FILESDIR/LICENSE
|
|
}
|