summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorHenning Schild <henning@hennsch.de>2023-07-21 09:34:59 +0200
committerJoonas Niilola <juippis@gentoo.org>2023-08-14 14:37:20 +0300
commitb24a98b2be5dae922daaf77898af4b6a0412dcbb (patch)
treea6149960de104926539cd2e8abb10c3b486636f4 /net-im
parentnet-im/telegram-desktop-bin: drop old (diff)
downloadgentoo-b24a98b2be5dae922daaf77898af4b6a0412dcbb.tar.gz
gentoo-b24a98b2be5dae922daaf77898af4b6a0412dcbb.tar.bz2
gentoo-b24a98b2be5dae922daaf77898af4b6a0412dcbb.zip
net-im/telegram-desktop-bin: add 4.8.9
Signed-off-by: Henning Schild <henning@hennsch.de> Closes: https://github.com/gentoo/gentoo/pull/31992 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-im')
-rw-r--r--net-im/telegram-desktop-bin/Manifest2
-rw-r--r--net-im/telegram-desktop-bin/telegram-desktop-bin-4.8.9.ebuild61
2 files changed, 63 insertions, 0 deletions
diff --git a/net-im/telegram-desktop-bin/Manifest b/net-im/telegram-desktop-bin/Manifest
index a44900c1eb3b..120a42ae61bc 100644
--- a/net-im/telegram-desktop-bin/Manifest
+++ b/net-im/telegram-desktop-bin/Manifest
@@ -1,2 +1,4 @@
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.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.8.9.ebuild b/net-im/telegram-desktop-bin/telegram-desktop-bin-4.8.9.ebuild
new file mode 100644
index 000000000000..5ef463d54b8f
--- /dev/null
+++ b/net-im/telegram-desktop-bin/telegram-desktop-bin-4.8.9.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
+}