From 1b2e7469b9a963d322c6898a45ac677351565f01 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 14 Jun 2020 15:07:01 +0200 Subject: [PATCH] net-im/discord-bin: initial import of version 0.0.10 --- .../discord-bin/discord-bin-0.0.10.exheres-0 | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 packages/net-im/discord-bin/discord-bin-0.0.10.exheres-0 diff --git a/packages/net-im/discord-bin/discord-bin-0.0.10.exheres-0 b/packages/net-im/discord-bin/discord-bin-0.0.10.exheres-0 new file mode 100644 index 0000000..e6abe43 --- /dev/null +++ b/packages/net-im/discord-bin/discord-bin-0.0.10.exheres-0 @@ -0,0 +1,63 @@ +# Copyright 2020 +# Distributed under the terms of the GNU General Public License v2 + +require freedesktop-mime freedesktop-desktop gtk-icon-cache + +SUMMARY="All-in-one voice and text chat for gamers" +HOMEPAGE="https://discordapp.com" +DOWNLOADS="https://dl.discordapp.net/apps/linux/${PV}/discord-${PV}.tar.gz" + +LICENCES="all-rights-reserved" +SLOT="0" +PLATFORMS="~amd64" +MYOPTIONS="" + +DEPENDENCIES=" + run: + dev-libs/atk +" + +BUGS_TO="hasufell@posteo.de" + +WORK=${WORKBASE}/Discord + +pkg_setup() { + exdirectory --allow /opt +} + +src_prepare() { + default + + sed -i \ + -e "s:/usr/share/discord/Discord:/opt/discord/Discord:g" \ + discord.desktop +} + +src_install() { + insinto /usr/share/icons/hicolor/256x256/apps + doins discord.png + + insinto /usr/share/applications + doins discord.desktop + + insinto /opt/discord + doins -r . + + mkdir -p "${IMAGE}/usr/$(exhost --target)/bin" + dosym ../../../opt/discord/Discord /usr/$(exhost --target)/bin/discord + chmod +x "${IMAGE}/usr/$(exhost --target)/bin/discord" +} + +pkg_postrm() { + freedesktop-desktop_pkg_postrm + freedesktop-mime_pkg_postrm + gtk-icon-cache_pkg_postrm +} + +pkg_postinst() { + freedesktop-desktop_pkg_postinst + freedesktop-mime_pkg_postinst + gtk-icon-cache_pkg_postinst +} + +