# Template file for 'discord-ptb' pkgname=discord-ptb version=0.0.38 revision=1 archs="x86_64" depends="alsa-lib dbus-glib gtk+3 libnotify nss libXtst libcxx libatomic xdg-utils webrtc-audio-processing" short_desc="Chat and VoIP application (preview version)" maintainer="0x5c " license="custom:Proprietary" homepage="https://discord.com/" distfiles="https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz" checksum=6cf83b64d410c44a514a9a7c8f9fd72c10c427221df260c6c52eadaa4cf3235b nopie=yes restricted=yes repository=nonfree nostrip=yes noshlibprovides=yes do_install() { local package_location="usr/lib/$pkgname" item vmkdir usr/share/pixmaps vinstall discord.png 644 /usr/share/pixmaps/ discord-ptb.png vmkdir usr/share/applications vcopy discord-ptb.desktop /usr/share/applications/ vmkdir ${package_location} for item in \ DiscordPTB \ discord.png \ chrome_100_percent.pak \ chrome_200_percent.pak \ chrome_crashpad_handler \ chrome-sandbox \ icudtl.dat \ libEGL.so \ libffmpeg.so \ libGLESv2.so \ libvk_swiftshader.so \ libvulkan.so.1 \ locales \ postinst.sh \ resources \ resources.pak \ snapshot_blob.bin \ swiftshader \ v8_context_snapshot.bin \ vk_swiftshader_icd.json do vcopy "${item}" "${package_location}" done vmkdir usr/bin ln -sfr $DESTDIR/${package_location}/DiscordPTB $DESTDIR/usr/bin/discord-ptb } post_install() { vlicense $FILESDIR/LICENSE }