summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorHenning Schild <henning@hennsch.de>2024-04-25 17:01:21 +1000
committerYixun Lan <dlan@gentoo.org>2024-04-25 11:03:44 +0000
commit38c406fdc744da1c205e4e4b2529d71fb9448294 (patch)
tree50e3a6929cc5357bce1b3191a365518b76a82895 /net-im
parentnet-im/zoom: Drop unused local use flag bundled-libjpeg-turbo (diff)
downloadgentoo-38c406fdc744da1c205e4e4b2529d71fb9448294.tar.gz
gentoo-38c406fdc744da1c205e4e4b2529d71fb9448294.tar.bz2
gentoo-38c406fdc744da1c205e4e4b2529d71fb9448294.zip
net-im/telegram-desktop-bin: add 4.16.8
Closes: https://github.com/gentoo/gentoo/pull/36411 Signed-off-by: Henning Schild <henning@hennsch.de> Signed-off-by: Yixun Lan <dlan@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.16.8.ebuild64
2 files changed, 66 insertions, 0 deletions
diff --git a/net-im/telegram-desktop-bin/Manifest b/net-im/telegram-desktop-bin/Manifest
index b1a048904c5a..bddecd66dc26 100644
--- a/net-im/telegram-desktop-bin/Manifest
+++ b/net-im/telegram-desktop-bin/Manifest
@@ -1,4 +1,6 @@
DIST tdesktop-4.15.2.tar.gz 19263533 BLAKE2B 078d9b93f60f8eec5fe09e73628cafd9e6b20393a6445da149e0b85befc5a492aff2952f150f4e6895f1305d222022f1cb9ce1e124a68838141e470453820fdb SHA512 d30cd363e2eab9b38c448ebd4c22ee98cf46d6e7a932c7469be5f950fba6dbb0d73cb86ae8439d989e8985cc6eb382ca930cad3c2511404c3cebcaf7c92b8049
DIST tdesktop-4.16.6.tar.gz 19360605 BLAKE2B 35ff32e1d04bc792327bbb744c6026ffc5dda940f1e547aab844458f557132757af7fbecf2ed235eb4f7c599cf3120f09a745ada4e7e8331a1866637e6def22e SHA512 f8439685d31446c1a5439522f445448e5eac37c32dfe5154941090ebeebb0181b918daa445dd5909be89e5757b4ef572de59987b85d31bd8725215fe501df35f
+DIST tdesktop-4.16.8.tar.gz 19360758 BLAKE2B d939ca2296be93c02a552726b0cab3efff84adbe969d3659c8f1ff7ff14be01e4e19aea12630cabe2771c8ebfd00d8ef6284d1c94257b506c34a5c9a525e0f91 SHA512 77b9dd8b0207196d5e43501b3fa39cd77e46b846801efc00067dbe3c777f8b4874ee5840fdead1cdfd8c765582f9ce8038b48bb53b703c22427becdc4f498074
DIST tsetup.4.15.2.tar.xz 54162852 BLAKE2B 6fa57b21de36f1e387bd9233f3e9045e30be73d33066dffc5756e6076267048fa8b959eece6bdd9ade1d3096faf0e6ace1d0c1f6565a9ac8b9a84c4423454c5b SHA512 12c72c02b8b69f4685ca5dcebdd784dd263a1cb0c117306b188e0d4fc79c978010bd697a2446692af6b9bd21382a9bf312bd27bb3da63b661a9e35578dd7b8a6
DIST tsetup.4.16.6.tar.xz 57015068 BLAKE2B d5ee30156b6338138095a32a41ce8807e9e32b76d05fbb43834138e13183953df59820a30df0e2e55becefab777105a0ca94c591351ff2aa438a855c10cd8b0d SHA512 2f17fe18ce0baee75797a2686d2834b9c66b51fd29bca31490e4544aa17e25ae833fa657239afd011c5846e76a2b134ca64960db0e9f2d38d6e769cdf99b0aeb
+DIST tsetup.4.16.8.tar.xz 56726632 BLAKE2B e3323903ca989d780f1a4ae20fa94eab6d17d2ee3505b689a7468e2e068ac68e17666a39400218a8cd40dbb59096a2a70e3a5767ea55eba0233a9fa9fe6e02cc SHA512 bc6d0bdee19286ccb06ceb6540d5f67b85735ec452ea69e0d550f64d3d54c718d309b211b19302849649b7fef979d91bf365f65c024f8891f387a2713629d711
diff --git a/net-im/telegram-desktop-bin/telegram-desktop-bin-4.16.8.ebuild b/net-im/telegram-desktop-bin/telegram-desktop-bin-4.16.8.ebuild
new file mode 100644
index 000000000000..19bc56b0ce5c
--- /dev/null
+++ b/net-im/telegram-desktop-bin/telegram-desktop-bin-4.16.8.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2024 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/gtk+:3[X,wayland]
+ 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 /usr/share/TelegramDesktop/externalupdater.d/
+ 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
+}