diff options
-rw-r--r-- | net-im/telegram-desktop-bin/Manifest | 2 | ||||
-rw-r--r-- | net-im/telegram-desktop-bin/telegram-desktop-bin-2.5.9.ebuild | 57 |
2 files changed, 59 insertions, 0 deletions
diff --git a/net-im/telegram-desktop-bin/Manifest b/net-im/telegram-desktop-bin/Manifest index 798c829329f7..6efef000eb98 100644 --- a/net-im/telegram-desktop-bin/Manifest +++ b/net-im/telegram-desktop-bin/Manifest @@ -1,4 +1,6 @@ DIST tdesktop-2.5.1.tar.gz 14954825 BLAKE2B ab43f1aee44bd2827159d6355c31007f05bf4b9e66631bf282bf631bb7dc58dacdcb23631b21040be3ea6dcc635a3b988c27cf7580b2eaeb908a8720d4322daf SHA512 430167f7231697bed69e4eb51488376460cf71de0bcce4d6ebb14c87c55b9461d00a6cc82f7861c4f1e8aa374bf95404385e93a05eb46eda8eec4ce87998735c DIST tdesktop-2.5.8.tar.gz 15032225 BLAKE2B f35cba316858c8434b7f206b0f70c0e8767bdfe90803c1d4e56e712cacb593617a30690bfe1cbfb140feb531c6b1336cfbfa95af91c61101a4b89c245b79fb9b SHA512 ceb488e2a25b80b4203eab2ed21c60af83c55aec1754955e19667ea7d1a2403aa8a4ef05c48627de1030e79041bcc1191ac8e79ea8bc5cabcbd6f675ac2b28c6 +DIST tdesktop-2.5.9.tar.gz 15030323 BLAKE2B e31695f4015e6194c08153da074a90ef5110511cfc616134dd8581db876ca5e31ed47d08e0be4a0cd5840e49405b36f60122e101fd50e4da35dc31cf3d2a1b2f SHA512 0f4d691dbf7806634c232d636292ae035fe5a7585279baae04aa504fb9921c8b077033d2401c310314c79aba08e26e0fa5f8c80f35b52249f41eaa9cfe90ce37 DIST tsetup.2.5.1.tar.xz 34642524 BLAKE2B be850b57f2d9daf96dc87825bac4b2ae9934050c26bfc55f959c0a8ab293a0000fb18b50edf7b147ef1c027c6e3871b279df83347240a3c7137ef03bb26a38f5 SHA512 7b830fbc9b0dcf465c76f44361e5d64e2d11878a7b7ef29648244672b3383b389725df6cdf07909b87d0361dca91e524345ac0ddf2868fefec2cdff2aa65bf76 DIST tsetup.2.5.8.tar.xz 35131968 BLAKE2B 3117af3521a4f52d1aa0431313d554226364f5dbab90a74b574b73a8adc7b95bea153284970e53db2285d08c7774e16a38dbf9b4b295fb3aa5e81b2dec7df8fb SHA512 58c03f55edc51107d20a3dc2b158e39c214d641e931227f7fc78a6bb8d3cb3f597d53a52abb471c006e0b65722bde8f252d67e4be7e3add94545333b69ca7ad8 +DIST tsetup.2.5.9.tar.xz 35175576 BLAKE2B d618739aa05c15ec75632593103588149c819906ecad86c0c984d4fbb6ad994e3d2f2fc9d3552dcf15673f980f707636698c5a706694c6ea6fbd694d2df845ca SHA512 be6a619c5d0818e56e6d23c0a20c90616333fcdd83caadc302339e9edcacb39618d67c5c578eacc5eec251c04412546303c3e7156f29b841fa759ab6b2ebbd2c diff --git a/net-im/telegram-desktop-bin/telegram-desktop-bin-2.5.9.ebuild b/net-im/telegram-desktop-bin/telegram-desktop-bin-2.5.9.ebuild new file mode 100644 index 000000000000..6821536278c0 --- /dev/null +++ b/net-im/telegram-desktop-bin/telegram-desktop-bin-2.5.9.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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/lib/${PN}/Telegram" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/gobject-introspection + >=media-libs/fontconfig-2.13 + media-libs/freetype:2 + media-libs/libglvnd[X] + >=sys-apps/dbus-1.4.2[X] + sys-libs/zlib + x11-libs/libSM + x11-libs/libdrm + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + >=x11-libs/libxcb-1.10[xkb] +" + +S="${WORKDIR}/Telegram" + +src_install() { + exeinto /usr/lib/${PN} + doexe "Telegram" + newbin "${FILESDIR}"/${PN} "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 +} |