Date: Sunday, March 28, 2021 @ 02:00:40 Author: svenstaro Revision: 905965
upgpkg: telegram-desktop 2.7.1-1 Added: telegram-desktop/trunk/fix-tgcalls-gcc10.patch Modified: telegram-desktop/trunk/PKGBUILD -------------------------+ PKGBUILD | 13 +++++++++---- fix-tgcalls-gcc10.patch | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-03-28 01:53:38 UTC (rev 905964) +++ PKGBUILD 2021-03-28 02:00:40 UTC (rev 905965) @@ -1,7 +1,7 @@ # Maintainer: Sven-Hendrik Haase <[email protected]> # Contributor: hexchain <[email protected]> pkgname=telegram-desktop -pkgver=2.6.1 +pkgver=2.7.1 pkgrel=1 pkgdesc='Official Telegram Desktop client' arch=('x86_64') @@ -8,15 +8,20 @@ url="https://desktop.telegram.org/" license=('GPL3') depends=('hunspell' 'ffmpeg' 'hicolor-icon-theme' 'lz4' 'minizip' 'openal' 'ttf-opensans' - 'qt5-imageformats' 'xxhash' 'libdbusmenu-qt5' 'kwayland' 'gtk3') + 'qt5-imageformats' 'xxhash' 'libdbusmenu-qt5' 'kwayland' 'gtk3' 'glibmm') makedepends=('cmake' 'git' 'ninja' 'python' 'range-v3' 'tl-expected' 'microsoft-gsl' 'libtg_owt') -source=("https://github.com/telegramdesktop/tdesktop/releases/download/v${pkgver}/tdesktop-${pkgver}-full.tar.gz") -sha512sums=('92506477ee1778f7528d8b914406cbf04abf1941d4f1a5d61b75dbf393df2184da1f4f83bbc343e221a539c7a01d3e3b3fe5286453d2bf1863b75ea922b70d5a') +source=("https://github.com/telegramdesktop/tdesktop/releases/download/v${pkgver}/tdesktop-${pkgver}-full.tar.gz" + "fix-tgcalls-gcc10.patch") +sha512sums=('dffd184c4369c5c5947b1ca085add533e54313ce39aebcdca4f0958431a305aa5e95c2f2b48592f6992e666b2d33eeba5697f9e09f6048a53b807f2950fbd17b' + 'dbc61a8520f3698fdeec6c9849cfd8241b8b778589f89277f82d6c748d8ed7a81db90daa0a69dedc3ab2b81bba848ee68e1df79a9cb3fb055f99bd7d19f46e5d') prepare() { cd tdesktop-$pkgver-full/cmake # force webrtc link to libjpeg echo "target_link_libraries(external_webrtc INTERFACE jpeg)" | tee -a external/webrtc/CMakeLists.txt + + cd ../Telegram/ThirdParty/tgcalls + patch -Np1 -i "$srcdir"/fix-tgcalls-gcc10.patch } build() { Added: fix-tgcalls-gcc10.patch =================================================================== --- fix-tgcalls-gcc10.patch (rev 0) +++ fix-tgcalls-gcc10.patch 2021-03-28 02:00:40 UTC (rev 905965) @@ -0,0 +1,34 @@ +From eded7cc540123eaf26361958b9a61c65cb2f7cfc Mon Sep 17 00:00:00 2001 +From: John Preston <[email protected]> +Date: Mon, 22 Mar 2021 19:24:10 +0400 +Subject: [PATCH] Fix build on GCC 10, second attempt. + +--- + tgcalls/group/StreamingPart.cpp | 1 - + tgcalls/group/StreamingPart.h | 1 + + 2 files changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tgcalls/group/StreamingPart.cpp b/tgcalls/group/StreamingPart.cpp +index a7f2e00..6b0206f 100644 +--- a/tgcalls/group/StreamingPart.cpp ++++ b/tgcalls/group/StreamingPart.cpp +@@ -12,7 +12,6 @@ extern "C" { + #include <string> + #include <set> + #include <map> +-#include <stdint.h> + + namespace tgcalls { + +diff --git a/tgcalls/group/StreamingPart.h b/tgcalls/group/StreamingPart.h +index 08859d6..6e0812c 100644 +--- a/tgcalls/group/StreamingPart.h ++++ b/tgcalls/group/StreamingPart.h +@@ -3,6 +3,7 @@ + + #include "absl/types/optional.h" + #include <vector> ++#include <stdint.h> + + namespace tgcalls { +
