telegram-desktop: update to 5.16.6.

This commit is contained in:
Komeil Parseh 2025-07-28 16:23:53 +03:30
parent 2c9b07292c
commit 8b1b5c6baa
No known key found for this signature in database
GPG key ID: 4D49B19F3D0D7879
3 changed files with 41 additions and 35 deletions

View file

@ -1,30 +0,0 @@
--- a/Telegram/lib_ui/ui/widgets/buttons.h 2025-03-10 07:58:29.000000000 +0100
+++ - 2025-03-13 21:21:45.309846801 +0100
@@ -13,6 +13,7 @@
#include "styles/style_widgets.h"
#include <memory>
+#include <cstddef>
class Painter;
@@ -273,7 +274,7 @@
const style::SettingsButton &st = st::defaultSettingsButton);
SettingsButton(
QWidget *parent,
- nullptr_t,
+ std::nullptr_t,
const style::SettingsButton &st = st::defaultSettingsButton);
~SettingsButton();
--- a/Telegram/lib_ui/ui/widgets/buttons.cpp 2025-03-10 07:58:29.000000000 +0100
+++ - 2025-03-13 21:27:09.133348285 +0100
@@ -795,7 +795,7 @@
SettingsButton::SettingsButton(
QWidget *parent,
- nullptr_t,
+ std::nullptr_t,
const style::SettingsButton &st)
: RippleButton(parent, st.ripple)
, _st(st)

View file

@ -0,0 +1,35 @@
This fixes build issues on stricter environments (e.g. with musl libc),
where `nullptr_t` is not available in the global namespace.
--- a/Telegram/lib_ui/ui/widgets/buttons.cpp
+++ b/Telegram/lib_ui/ui/widgets/buttons.cpp
@@ -803,7 +803,7 @@ SettingsButton::SettingsButton(
SettingsButton::SettingsButton(
QWidget *parent,
- nullptr_t,
+ std::nullptr_t,
const style::SettingsButton &st)
: RippleButton(parent, st.ripple)
, _st(st)
--- a/Telegram/lib_ui/ui/widgets/buttons.h
+++ b/Telegram/lib_ui/ui/widgets/buttons.h
@@ -12,6 +12,7 @@
#include "ui/text/text.h"
#include "styles/style_widgets.h"
+#include <cstddef>
#include <memory>
class Painter;
@@ -276,7 +277,7 @@ public:
const Text::MarkedContext &context = {});
SettingsButton(
QWidget *parent,
- nullptr_t,
+ std::nullptr_t,
const style::SettingsButton &st = st::defaultSettingsButton);
~SettingsButton();
--
2.50.1

View file

@ -1,6 +1,6 @@
# Template file for 'telegram-desktop'
pkgname=telegram-desktop
version=5.12.3
version=5.16.6
revision=1
build_style=cmake
build_helper="qemu gir"
@ -8,15 +8,16 @@ configure_args="-DTDESKTOP_API_ID=209235
-DTDESKTOP_API_HASH=169ee702e1df4b6e66d80311db36cc43
-DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON
-DDESKTOP_APP_DISABLE_SPELLCHECK=$(vopt_if spellcheck 'false' 'true')
-Dtde2e_DIR='/usr/lib/cmake/Td'
-DWaylandScanner_EXECUTABLE=/usr/bin/wayland-scanner
-DQT_HOST_PATH=/usr"
hostmakedepends="pkg-config qt6-base python3 extra-cmake-modules
qt6-wayland-tools wayland-devel protobuf glib-devel kf6-kcoreaddons"
hostmakedepends="pkg-config qt6-base python3 extra-cmake-modules qt6-wayland-tools
qt6-declarative-host-tools wayland-devel protobuf glib-devel kf6-kcoreaddons"
makedepends="alsa-lib-devel boost-devel fmt-devel ffmpeg6-devel libglib-devel
gobject-introspection libdbusmenu-glib-devel libopenal-devel
minizip-devel opus-devel xxHash-devel pulseaudio-devel range-v3
qt6-svg-devel libva-devel rapidjson liblz4-devel liblzma-devel
MesaLib-devel qt6-wayland-devel qt6-qt5compat-devel
MesaLib-devel qt6-wayland-devel qt6-qt5compat-devel libtd-devel
qt6-base-private-devel kf6-kcoreaddons-devel ada-devel
xcb-util-keysyms-devel $(vopt_if spellcheck hunspell-devel) protobuf-devel
glibmm2.68-devel tg_owt rnnoise-devel jemalloc-devel qt6-declarative-devel"
@ -27,7 +28,7 @@ license="GPL-3.0-or-later, OpenSSL"
homepage="https://desktop.telegram.org/"
changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
checksum=050a19e74632eff02737f078b02d78e11faa108d0932371f3d64122b225d3034
checksum=9b0ae00cec85d0c6735390cc453ed07f005da1d7927f2e77976037877bc1b594
build_options="spellcheck"
build_options_default="spellcheck"