telegram-desktop: update to 2.4.7.
Also update license
This commit is contained in:
parent
538b74d2b9
commit
c63ac1c963
2 changed files with 30 additions and 28 deletions
|
@ -1,48 +1,50 @@
|
|||
--- Telegram/lib_base/base/platform/linux/base_info_linux.cpp 2020-06-03 09:28:30.000000000 +0200
|
||||
+++ - 2020-06-08 00:40:30.503197310 +0200
|
||||
@@ -13,7 +13,6 @@
|
||||
#include <QtCore/QVersionNumber>
|
||||
--- Telegram/lib_base/base/platform/linux/base_info_linux.cpp 2020-11-21 11:09:51.647955733 +0100
|
||||
+++ - 2020-11-21 11:09:50.935306092 +0100
|
||||
@@ -12,11 +12,6 @@
|
||||
#include <QtCore/QDate>
|
||||
#include <QtGui/QGuiApplication>
|
||||
-#include <gnu/libc-version.h>
|
||||
|
||||
-// this file is used on both Linux & BSD
|
||||
-#ifdef Q_OS_LINUX
|
||||
-#include <gnu/libc-version.h>
|
||||
-#endif // Q_OS_LINUX
|
||||
-
|
||||
namespace Platform {
|
||||
namespace {
|
||||
@@ -84,8 +74,7 @@
|
||||
return "Linux "
|
||||
+ (list.isEmpty() ? QString() : list[0] + ' ')
|
||||
+ (IsWayland() ? "Wayland " : "X11 ")
|
||||
- + "glibc "
|
||||
- + GetGlibCVersion();
|
||||
+ + "void ";
|
||||
}
|
||||
|
||||
QString SystemCountry() {
|
||||
@@ -103,11 +92,7 @@
|
||||
QDate WhenSystemBecomesOutdated() {
|
||||
@@ -95,11 +90,7 @@
|
||||
|
||||
if (IsLinux32Bit()) {
|
||||
return QDate(2020, 9, 1);
|
||||
- } else if (const auto version = GetGlibCVersion(); !version.isEmpty()) {
|
||||
- if (QVersionNumber::fromString(version) < QVersionNumber(2, 23)) {
|
||||
- } else if (libcName == qstr("glibc") && !libcVersion.isEmpty()) {
|
||||
- if (QVersionNumber::fromString(libcVersion) < QVersionNumber(2, 23)) {
|
||||
- return QDate(2020, 9, 1); // Older than Ubuntu 16.04.
|
||||
- }
|
||||
- }
|
||||
+ }
|
||||
|
||||
return QDate();
|
||||
}
|
||||
|
||||
@@ -129,14 +114,6 @@
|
||||
}
|
||||
@@ -123,22 +114,10 @@
|
||||
}
|
||||
|
||||
-QString GetGlibCVersion() {
|
||||
QString GetLibcName() {
|
||||
-#ifdef Q_OS_LINUX
|
||||
- return "glibc";
|
||||
-#endif // Q_OS_LINUX
|
||||
-
|
||||
return QString();
|
||||
}
|
||||
|
||||
QString GetLibcVersion() {
|
||||
-#ifdef Q_OS_LINUX
|
||||
- static const auto result = [&] {
|
||||
- const auto version = QString::fromLatin1(gnu_get_libc_version());
|
||||
- return QVersionNumber::fromString(version).isNull() ? QString() : version;
|
||||
- }();
|
||||
- return result;
|
||||
-}
|
||||
-#endif // Q_OS_LINUX
|
||||
-
|
||||
bool IsWayland() {
|
||||
return QGuiApplication::platformName().startsWith("wayland", Qt::CaseInsensitive);
|
||||
return QString();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'telegram-desktop'
|
||||
pkgname=telegram-desktop
|
||||
version=2.4.3
|
||||
version=2.4.7
|
||||
revision=1
|
||||
wrksrc="tdesktop-${version}-full"
|
||||
build_style=cmake
|
||||
|
@ -21,11 +21,11 @@ makedepends="alsa-lib-devel ffmpeg-devel libdbusmenu-glib-devel libopenal-devel
|
|||
depends="qt5-imageformats qt5-core>=5.15.1<5.15.2"
|
||||
short_desc="Telegram Desktop messaging app"
|
||||
maintainer="John <me@johnnynator.dev>"
|
||||
license="GPL-3.0-or-later WITH OpenSSL"
|
||||
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=56de48ea5332b3e113423e286f42a7b06e3059cadfed862c3164384ebebd4895
|
||||
checksum=7b13df53be5d6b58d07d730c9429e415be2fea7f7be37bcaa80a505152125bc8
|
||||
|
||||
build_options="spellcheck"
|
||||
build_options_default="spellcheck"
|
||||
|
|
Loading…
Reference in a new issue