diff options
-rw-r--r-- | net-im/telegram-desktop-bin/Manifest | 2 | ||||
-rw-r--r-- | net-im/telegram-desktop-bin/telegram-desktop-bin-4.10.3.ebuild | 61 |
2 files changed, 63 insertions, 0 deletions
diff --git a/net-im/telegram-desktop-bin/Manifest b/net-im/telegram-desktop-bin/Manifest index 120a42ae61bc..41dccab0fab1 100644 --- a/net-im/telegram-desktop-bin/Manifest +++ b/net-im/telegram-desktop-bin/Manifest @@ -1,4 +1,6 @@ +DIST tdesktop-4.10.3.tar.gz 18112345 BLAKE2B d64e9bd897295917ee9875565c571de954d7b57b40fd37c542e5d27b4799c4c55b1c9e7afe27bcadc3a7d2012188f9e95eed9a39073b758ee46b4f8b35de416c SHA512 60d819208cb003f4b1716bbf279e3cb29c8925af9c21e149b611dbb66f06ed8638a4113db4cd603708c53afe67e6bf3649fa9044195885fbf46e34e306afce0e DIST tdesktop-4.8.4.tar.gz 17647686 BLAKE2B 73ae16a588574671c20ff0f5469040136caee1ea726dd6bd239f56f8a1a12618263febdefd7c036de7bfae90163d1a37563d1f419b396848b6accabf71a25440 SHA512 971de6b8a5991d60aa35d7e082d9069291730f1e730a2e57fdb2c12456fa7e820b7750f6546bf643ce9c8b156f8c151ee28f1dabad389cbe0b37876fc10d058c DIST tdesktop-4.8.9.tar.gz 17838522 BLAKE2B 57f6090f59181e3bb87729f94493be248ea34b4e96d3f339d0697188b278cdfba3798cf75ad27e3b6e99a2538a30f22eb80d52ce36f4090e5678274c4a837bdf SHA512 9814a56aba844349f23a07ee1972987acff6a38c62755bc6efc80b468c4bc4e0b44c73eef0ff462dcb71a74d96b60c973eefd5e8fd0f9e684cd2cfb52676396c +DIST tsetup.4.10.3.tar.xz 52239308 BLAKE2B 8d028c964e5d60788dcf35c370d942a5bc4c5f1682b7edf9787ce6ca60b363d58267cc71d1916092d90d0a4b8baf8d4ac09cede8651db8b5786292a1f8060b66 SHA512 27260d01c5b1bf1ae7120b9d4f95168b4335c8f803b21637af967d534cb9e538484b7c6e2782e79fa0a50b209ce489143546fd648cbc6d209a144ab5bd3f2ca1 DIST tsetup.4.8.4.tar.xz 51480560 BLAKE2B 5d32921986e0c241d62442235679285a60ff241b6a3729ea0f9dca407c8794cc463d4ed0d0a8f472294f8ac781483ff0a12b03fa2e86b26e8c8aad90c5131259 SHA512 698a31a81f535428d1e672c1d2b6f8dcdf3ed145f413ada404af00caea762df4935005c5a2ea5a5469949b49c9cd40ab0670049f0618b4f273d70349147df5c8 DIST tsetup.4.8.9.tar.xz 50837700 BLAKE2B 1161ec689c003c725dad0a98de0e5a2d5fc1f4ad57739147e26413c6cce637a9b6e4dbff332b8d6a6115c41dfb5c8270ba4c44520324efc8d365b6a16f5d5242 SHA512 6d72e79f747aec6c32d68379dbb05fba1bdc2b8639a146184e1b3e11713380de9aa6b7a44f8d33497b9d1820013808b08d88cea799d8291e69987170355f7f25 diff --git a/net-im/telegram-desktop-bin/telegram-desktop-bin-4.10.3.ebuild b/net-im/telegram-desktop-bin/telegram-desktop-bin-4.10.3.ebuild new file mode 100644 index 000000000000..5ef463d54b8f --- /dev/null +++ b/net-im/telegram-desktop-bin/telegram-desktop-bin-4.10.3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 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" + +RDEPEND=" + !net-im/telegram-desktop + 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 +" + +S="${WORKDIR}/Telegram" + +src_prepare() { + default + + sed -i -e 's/^Exec=@CMAKE_INSTALL_FULL_BINDIR@\/telegram-desktop/Exec=\/usr\/bin\/telegram-desktop/' "${WORKDIR}/tdesktop-${PV}"/lib/xdg/org.telegram.desktop.service || die +} + +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/org.telegram.desktop.desktop + insinto /usr/share/dbus-1/services + doins "${WORKDIR}/tdesktop-${PV}"/lib/xdg/org.telegram.desktop.service +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "spell checker support" app-text/enchant +} |