From 16aaa01048f8daa4c95c08cb316fec11fc9cca45 Mon Sep 17 00:00:00 2001 From: Ryan Conwell Date: Mon, 6 Feb 2017 22:33:42 -0500 Subject: [PATCH] New package: discord-0.0.1 (#5687) New package: discord-0.0.1 --- srcpkgs/discord/files/LICENSE | 1 + srcpkgs/discord/template | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/discord/files/LICENSE create mode 100644 srcpkgs/discord/template diff --git a/srcpkgs/discord/files/LICENSE b/srcpkgs/discord/files/LICENSE new file mode 100644 index 00000000000..f93a8eb70cd --- /dev/null +++ b/srcpkgs/discord/files/LICENSE @@ -0,0 +1 @@ +The current version of this license can be found at: https://discordapp.com/tos diff --git a/srcpkgs/discord/template b/srcpkgs/discord/template new file mode 100644 index 00000000000..0612533c5ef --- /dev/null +++ b/srcpkgs/discord/template @@ -0,0 +1,30 @@ +# Template file for 'discord' +# Originally created by Benjamin Hoffmeyer, modified for stable Discord + +pkgname="discord" +version="0.0.1" +revision=1 +depends="alsa-lib dbus-glib gtk+3 GConf libnotify nss libXtst" +wrksrc="Discord" +only_for_archs="x86_64" +nopie=yes +repository=nonfree +restricted=yes +short_desc="Chat and VOIP application" +maintainer="Ryan Conwell " +license="proprietary" +homepage="https://discordapp.com" +distfiles="https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz" +checksum="ba0ff3c57d7ab3a5e47a91bd23a79758085147e88fa0c65529bcf50a778fa382" + +do_install() { + vmkdir /usr/share/pixmaps + vcopy discord.png /usr/share/pixmaps/ + vmkdir /usr/lib/$pkgname + vcopy * /usr/lib/$pkgname + vmkdir /usr/bin + ln -sfr $DESTDIR/usr/share/$pkgname/Discord $DESTDIR/usr/bin/discord +} +post_install() { + vlicense $FILESDIR/LICENSE +}