57 lines
1.4 KiB
Bash
57 lines
1.4 KiB
Bash
# Template file for 'discord'
|
|
pkgname=discord
|
|
version=0.0.47
|
|
revision=1
|
|
archs="x86_64"
|
|
depends="alsa-lib dbus-glib gtk+3 libnotify nss libXtst libcxx libatomic
|
|
xdg-utils webrtc-audio-processing libXScrnSaver"
|
|
short_desc="Chat and VOIP application"
|
|
maintainer="Ryan Conwell <ryanconwell@protonmail.com>"
|
|
license="custom:Proprietary"
|
|
homepage="https://discord.com"
|
|
distfiles="https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz"
|
|
checksum=e1c10bb3b2bb0c07f36c0d3f0700242ab6930fbcf9f23cce7f52773aeaf70b03
|
|
repository=nonfree
|
|
restricted=yes
|
|
nopie=yes
|
|
nostrip=yes
|
|
|
|
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 \
|
|
snapshot_blob.bin \
|
|
discord.png \
|
|
icudtl.dat \
|
|
libEGL.so \
|
|
libGLESv2.so \
|
|
chrome_100_percent.pak \
|
|
chrome_200_percent.pak \
|
|
chrome-sandbox \
|
|
chrome_crashpad_handler \
|
|
resources.pak \
|
|
libvulkan.so.1 \
|
|
v8_context_snapshot.bin \
|
|
postinst.sh \
|
|
libvk_swiftshader.so \
|
|
vk_swiftshader_icd.json
|
|
do
|
|
vcopy "${item}" "${package_location}"
|
|
done
|
|
vmkdir usr/bin
|
|
ln -sfr $DESTDIR/${package_location}/Discord $DESTDIR/usr/bin/Discord
|
|
}
|
|
|
|
post_install() {
|
|
vlicense $FILESDIR/LICENSE
|
|
}
|