这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions x11-packages/telegram-desktop/0007-cppgir-namespace.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp
+++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp
@@ -51,9 +51,11 @@
namespace {

using namespace gi::repository;
-namespace GObject = gi::repository::GObject;
+namespace GObjectNamespace = gi::repository::GObject;
using namespace Platform;

+#define GObject GObjectNamespace
+
void PortalAutostart(bool enabled, Fn<void(bool)> done) {
const auto executable = ExecutablePathForShortcuts();
if (executable.isEmpty()) {
@@ -894,3 +896,5 @@

return true;
}
+
+#undef GObject
5 changes: 2 additions & 3 deletions x11-packages/telegram-desktop/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ TERMUX_PKG_DESCRIPTION="Telegram Desktop Client"
TERMUX_PKG_LICENSE="custom"
TERMUX_PKG_LICENSE_FILE="LICENSE, LEGAL"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="6.2.4"
TERMUX_PKG_REVISION=2
TERMUX_PKG_VERSION="6.3.0"
TERMUX_PKG_SRCURL=https://github.com/telegramdesktop/tdesktop/releases/download/v$TERMUX_PKG_VERSION/tdesktop-$TERMUX_PKG_VERSION-full.tar.gz
TERMUX_PKG_SHA256=8ddde8ee7fd8bced7837a7e2a4a83a6c88fbbd1dda383a38bb064777f875f78f
TERMUX_PKG_SHA256=be2794a89cc9a4d398f64915077d1b48e4b5bf352b5abc728de16693a9d4ca4c
TERMUX_PKG_DEPENDS="abseil-cpp, boost, ffmpeg, glib, hicolor-icon-theme, hunspell, kf6-kcoreaddons, libandroid-shmem, libc++, libdispatch, libdrm, libjxl, liblz4, libminizip, protobuf, librnnoise, libsigc++-3.0, libx11, libxcomposite, libxdamage, libxrandr, libxtst, openal-soft, opengl, openh264, openssl, pipewire, pulseaudio, qt6-qtbase, qt6-qtimageformats, qt6-qtsvg, xxhash, zlib"
TERMUX_PKG_BUILD_DEPENDS="ada, aosp-libs, boost-headers, glib-cross, qt6-qtbase-cross-tools"
TERMUX_PKG_VERSIONED_GIR=false
Expand Down