From 89189b67e49c24617d7e223b5031104974b5d7c3 Mon Sep 17 00:00:00 2001 From: Abel Graham Date: Wed, 13 Dec 2017 17:29:34 -0500 Subject: [PATCH] New package: discord-ptb-0.0.5 Closes: #9981 [via git-merge-pr] --- srcpkgs/discord-ptb/template | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 srcpkgs/discord-ptb/template diff --git a/srcpkgs/discord-ptb/template b/srcpkgs/discord-ptb/template new file mode 100644 index 00000000000..15593d84cf7 --- /dev/null +++ b/srcpkgs/discord-ptb/template @@ -0,0 +1,30 @@ +# Template file for 'discord-ptb' +pkgname="discord-ptb" +version="0.0.5" +revision=1 +wrksrc="DiscordPTB" +depends="alsa-lib dbus-glib gtk+3 GConf libnotify nss libXtst libcxx libatomic" +only_for_archs="x86_64" +nopie=yes +repository=nonfree +restricted=yes +short_desc="Proprietary freeware VoIP application" +maintainer="Abel Graham " +license="proprietary" +homepage="https://discordapp.com/" +distfiles="https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz" +checksum="64f7a5d7d4e6116297a8979cb4723d1a9e576c5e4c564915c8e0309b9c98ba04" + +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-ptb.desktop /usr/share/applications/ + vmkdir ${package_location} + for item in locales resources DiscordPTB 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}/DiscordPTB $DESTDIR/usr/bin/discord-ptb +} \ No newline at end of file