diff options
author | Henning Schild <henning@hennsch.de> | 2022-02-09 06:19:40 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-02-09 11:19:43 +0000 |
commit | e02e657ec130e23cb1fff25727b75ff4aebe3776 (patch) | |
tree | c4e8a3485a773b5a802447da3c13385d8359303e /net-im/telegram-desktop-bin/telegram-desktop-bin-3.5.2.ebuild | |
parent | net-im/telegram-desktop-bin: RDEPEND on sys-libs/glibc and mask for musl (diff) | |
download | gentoo-e02e657ec130e23cb1fff25727b75ff4aebe3776.tar.gz gentoo-e02e657ec130e23cb1fff25727b75ff4aebe3776.tar.bz2 gentoo-e02e657ec130e23cb1fff25727b75ff4aebe3776.zip |
net-im/telegram-desktop-bin: bump version to 3.5.2
Signed-off-by: Henning Schild <henning@hennsch.de>
Closes: https://github.com/gentoo/gentoo/pull/24135
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-im/telegram-desktop-bin/telegram-desktop-bin-3.5.2.ebuild')
-rw-r--r-- | net-im/telegram-desktop-bin/telegram-desktop-bin-3.5.2.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/net-im/telegram-desktop-bin/telegram-desktop-bin-3.5.2.ebuild b/net-im/telegram-desktop-bin/telegram-desktop-bin-3.5.2.ebuild new file mode 100644 index 000000000000..40ecf6ecfb9d --- /dev/null +++ b/net-im/telegram-desktop-bin/telegram-desktop-bin-3.5.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop optfeature xdg + +DESCRIPTION="Official desktop client for Telegram (binary package)" +HOMEPAGE="https://desktop.telegram.org" +SRC_URI=" + https://github.com/telegramdesktop/tdesktop/archive/v${PV}.tar.gz -> tdesktop-${PV}.tar.gz + amd64? ( https://updates.tdesktop.com/tlinux/tsetup.${PV}.tar.xz ) +" + +LICENSE="GPL-3-with-openssl-exception" +SLOT="0" +KEYWORDS="-* ~amd64" + +QA_PREBUILT="usr/bin/telegram-desktop" +# current desktop-file-utils-0.26 does not understand Version=1.5 +# https://gitlab.freedesktop.org/xdg/desktop-file-utils/-/issues/59 +QA_DESKTOP_FILE="usr/share/applications/telegramdesktop.desktop" + +RDEPEND=" + sys-libs/glibc + dev-libs/glib:2 + >=media-libs/fontconfig-2.13 + media-libs/freetype:2 + virtual/opengl + x11-libs/libX11 + >=x11-libs/libxcb-1.10[xkb] +" + +S="${WORKDIR}/Telegram" + +src_install() { + newbin Telegram telegram-desktop + + insinto /etc/tdesktop + newins - externalupdater <<<"${EPREFIX}/usr/bin/telegram-desktop" + + local icon_size + for icon_size in 16 32 48 64 128 256 512; do + newicon -s "${icon_size}" \ + "${WORKDIR}/tdesktop-${PV}/Telegram/Resources/art/icon${icon_size}.png" \ + telegram.png + done + + domenu "${WORKDIR}/tdesktop-${PV}"/lib/xdg/telegramdesktop.desktop +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "spell checker support" app-text/enchant +} |