diff options
author | Henning Schild <henning@hennsch.de> | 2024-03-14 18:52:14 +1300 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2024-03-15 00:02:37 +0000 |
commit | 97048a66b52ab621794881c510d37a515bce0c74 (patch) | |
tree | 976031c9d6c7c17c085c1ae76df6659208c0faa2 /net-im | |
parent | games-mud/tintin: Drop old 2.01.8 (diff) | |
download | gentoo-97048a66b52ab621794881c510d37a515bce0c74.tar.gz gentoo-97048a66b52ab621794881c510d37a515bce0c74.tar.bz2 gentoo-97048a66b52ab621794881c510d37a515bce0c74.zip |
net-im/telegram-desktop-bin: add 4.15.2
Closes: https://github.com/gentoo/gentoo/pull/35740
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/Manifest | 2 | ||||
-rw-r--r-- | net-im/telegram-desktop-bin/telegram-desktop-bin-4.15.2.ebuild | 62 |
2 files changed, 64 insertions, 0 deletions
diff --git a/net-im/telegram-desktop-bin/Manifest b/net-im/telegram-desktop-bin/Manifest index 96da6c4fb871..92b70feb9117 100644 --- a/net-im/telegram-desktop-bin/Manifest +++ b/net-im/telegram-desktop-bin/Manifest @@ -1,4 +1,6 @@ DIST tdesktop-4.14.15.tar.gz 18711267 BLAKE2B 540f91a64d1cc9f4ecdd6ecb1e0c88d32c8c91ce9443034d0c1567be211c1380924b685b5ab35e8d2339c2c787b6e5e1e7ff35264003deb8caaacf43e1d170ec SHA512 05b85f0ba68f44f0fd9e54b00fa9fdbf8b1add5607524d8f01e875cfa6f5a11d2decb50e212ed4086eb4757e55a686161025b87bf3908d46f9bdabc41d62aebd DIST tdesktop-4.15.0.tar.gz 18839494 BLAKE2B 838314f4cc0e503f0630bc53584371fd907574f460aa7ccd1474202a9e1a54b37e29bc1c9dfe5e4e08e3488eb0f84129117db6e7120c8d65e7bdd030331c2170 SHA512 9e7096cd90c4ba48ca67d62e5cd424d1d290e79fa02097b349acd99b37c588e9b2f9d090cb45e29cae28369a491e95e360f16047d40cfacc6d944e16af658861 +DIST tdesktop-4.15.2.tar.gz 19263533 BLAKE2B 078d9b93f60f8eec5fe09e73628cafd9e6b20393a6445da149e0b85befc5a492aff2952f150f4e6895f1305d222022f1cb9ce1e124a68838141e470453820fdb SHA512 d30cd363e2eab9b38c448ebd4c22ee98cf46d6e7a932c7469be5f950fba6dbb0d73cb86ae8439d989e8985cc6eb382ca930cad3c2511404c3cebcaf7c92b8049 DIST tsetup.4.14.15.tar.xz 53265092 BLAKE2B 268f1828432bea8c6683df7a861ba366f0204092626daffdfd3de4e4116c07964fe92e141f0571a0dc1da47804b303342c4fe8a14dda6831da96840ccbad3a6e SHA512 17275f2f85fbad46590f927e8538c344df3ae67b65b608c5bb880dfc7425c2b83019fa5f89d9d9ec656c981ca11219347ffcfb4563e01d31298bff5b7298f56c DIST tsetup.4.15.0.tar.xz 53439808 BLAKE2B 8531d5b6ff7d0841e95926cac9349f8ce00d6ecb3feed05beb07811acbefbf92c4a16611e5cc04daa5ef108d0cad3ec760c143c427966f37293b6e72051ed7f4 SHA512 918e004b3b548d3e20a5655552bc5419a8d48b86b6c9dd9d8b54283159b41b6dcb0c6e8ea4eb603ff04abdbe19c001cff871185bce602d96c0053d7399c4d8c0 +DIST tsetup.4.15.2.tar.xz 54162852 BLAKE2B 6fa57b21de36f1e387bd9233f3e9045e30be73d33066dffc5756e6076267048fa8b959eece6bdd9ade1d3096faf0e6ace1d0c1f6565a9ac8b9a84c4423454c5b SHA512 12c72c02b8b69f4685ca5dcebdd784dd263a1cb0c117306b188e0d4fc79c978010bd697a2446692af6b9bd21382a9bf312bd27bb3da63b661a9e35578dd7b8a6 diff --git a/net-im/telegram-desktop-bin/telegram-desktop-bin-4.15.2.ebuild b/net-im/telegram-desktop-bin/telegram-desktop-bin-4.15.2.ebuild new file mode 100644 index 000000000000..f42ba6d6aee0 --- /dev/null +++ b/net-im/telegram-desktop-bin/telegram-desktop-bin-4.15.2.ebuild @@ -0,0 +1,62 @@ +# 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 +} |