[arch-commits] Commit in telegram-desktop/trunk (PKGBUILD fix-webview-includes.patch)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Apr 26 15:36:04 UTC 2021


    Date: Monday, April 26, 2021 @ 15:36:04
  Author: svenstaro
Revision: 924532

upgpkg: telegram-desktop 2.7.2-1

Added:
  telegram-desktop/trunk/fix-webview-includes.patch
Modified:
  telegram-desktop/trunk/PKGBUILD

----------------------------+
 PKGBUILD                   |   15 +++++++--------
 fix-webview-includes.patch |   12 ++++++++++++
 2 files changed, 19 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-26 15:24:16 UTC (rev 924531)
+++ PKGBUILD	2021-04-26 15:36:04 UTC (rev 924532)
@@ -1,7 +1,7 @@
 # Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
 # Contributor: hexchain <i at hexchain.org>
 pkgname=telegram-desktop
-pkgver=2.7.1
+pkgver=2.7.2
 pkgrel=1
 pkgdesc='Official Telegram Desktop client'
 arch=('x86_64')
@@ -8,20 +8,19 @@
 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' 'glibmm')
+         'qt5-imageformats' 'xxhash' 'libdbusmenu-qt5' 'kwayland' 'gtk3' 'glibmm' 'webkit2gtk')
 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"
-        "fix-tgcalls-gcc10.patch")
-sha512sums=('dffd184c4369c5c5947b1ca085add533e54313ce39aebcdca4f0958431a305aa5e95c2f2b48592f6992e666b2d33eeba5697f9e09f6048a53b807f2950fbd17b'
-            'dbc61a8520f3698fdeec6c9849cfd8241b8b778589f89277f82d6c748d8ed7a81db90daa0a69dedc3ab2b81bba848ee68e1df79a9cb3fb055f99bd7d19f46e5d')
+        "fix-webview-includes.patch")
+sha512sums=('4c4e41d0af6e2ee004002abf1fd41d8d400d75c3d95ae2952e6354692928dee32062cc066e15c63b84ab512cf3cba7dbc90104920618523d72c71cfea5449d98'
+            '5492c73f0b984da1e2d1f21c3a36c11c4b9ad511522dccd4d6440681f68d6ebc9e672806a534b1e551f736f080d3ef307c8ddd012e4646bd84d09c5e8fa85a40')
 
 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
+    cd ../Telegram/lib_webview
+    patch -Np1 -i "$srcdir"/fix-webview-includes.patch
 }
 
 build() {

Added: fix-webview-includes.patch
===================================================================
--- fix-webview-includes.patch	                        (rev 0)
+++ fix-webview-includes.patch	2021-04-26 15:36:04 UTC (rev 924532)
@@ -0,0 +1,12 @@
+diff --git a/webview/platform/linux/webview_linux_webkit_gtk.h b/webview/platform/linux/webview_linux_webkit_gtk.h
+index a7f0f97..c2b21c7 100644
+--- a/webview/platform/linux/webview_linux_webkit_gtk.h
++++ b/webview/platform/linux/webview_linux_webkit_gtk.h
+@@ -14,6 +14,7 @@ extern "C" {
+ #include <gtk/gtk.h>
+ #include <webkit2/webkit2.h>
+ #include <X11/Xlib.h>
++#include <gdk/gdkx.h>
+ #define signals public
+ } // extern "C"
+ 



More information about the arch-commits mailing list