Support Discord stable (keep supporting canary builds)

Discord stable for linux is now available!
This commit is contained in:
TheElectronWill 2017-02-10 16:12:02 +01:00
parent 50704a5a5a
commit 4609df66e2
4 changed files with 177 additions and 1 deletions

View file

@ -1,38 +0,0 @@
# Defined by the caller (ie the script):
# version_number
# downloaded_dir
# desktop_file
%define install_dir /opt/discord
%define apps_dir /usr/share/applications
Name: discord
Version: %{version_number}
Release: canary%{?dist}
Summary: Free Voice and Text Chat for Gamers.
Group: Applications/Internet
License: Proprietary
URL: https://discordapp.com/
BuildArch: x86_64
Requires: glibc, alsa-lib, GConf2, libnotify, nspr >= 4.13, nss >= 3.27, libstdc++ >= 6, libX11 >= 1.6, libXtst >= 1.2, libappindicator
%description
All-in-one voice and text chat for gamers thats free, secure, and works on both your desktop and phone.
Its time to ditch Skype and TeamSpeak.
%prep
%build
%install
mkdir -p "%{buildroot}%{install_dir}"
mkdir -p "%{buildroot}%{apps_dir}"
mv "%{downloaded_dir}"/* "%{buildroot}%{install_dir}"
cp "%{desktop_file}" "%{buildroot}%{apps_dir}"
chmod +x "%{buildroot}%{install_dir}"/*.so
%files
/*