[arch-commits] Commit in telegram-desktop/repos/community-x86_64 (6 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Apr 28 20:19:48 UTC 2021


    Date: Wednesday, April 28, 2021 @ 20:19:47
  Author: svenstaro
Revision: 925017

archrelease: copy trunk to community-x86_64

Added:
  telegram-desktop/repos/community-x86_64/PKGBUILD
    (from rev 925016, telegram-desktop/trunk/PKGBUILD)
  telegram-desktop/repos/community-x86_64/fix-tgcalls-gcc10.patch
    (from rev 925016, telegram-desktop/trunk/fix-tgcalls-gcc10.patch)
  telegram-desktop/repos/community-x86_64/fix-webview-includes.patch
    (from rev 925016, telegram-desktop/trunk/fix-webview-includes.patch)
Deleted:
  telegram-desktop/repos/community-x86_64/PKGBUILD
  telegram-desktop/repos/community-x86_64/fix-tgcalls-gcc10.patch
  telegram-desktop/repos/community-x86_64/fix-webview-includes.patch

----------------------------+
 PKGBUILD                   |   94 +++++++++++++++++++++----------------------
 fix-tgcalls-gcc10.patch    |   68 +++++++++++++++----------------
 fix-webview-includes.patch |   24 +++++-----
 3 files changed, 93 insertions(+), 93 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-28 20:19:40 UTC (rev 925016)
+++ PKGBUILD	2021-04-28 20:19:47 UTC (rev 925017)
@@ -1,47 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
-# Contributor: hexchain <i at hexchain.org>
-pkgname=telegram-desktop
-pkgver=2.7.3
-pkgrel=1
-pkgdesc='Official Telegram Desktop client'
-arch=('x86_64')
-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' '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-webview-includes.patch")
-sha512sums=('442ab4f0beaf4d5cf47a515ccb54e31f22d5aef6e018d9c9bc9df909bda76ec98ce02e4a2f605fb3e92ac3c186278f4dc77cf4ee52077bbeee163aefc420ac20'
-            '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/lib_webview
-    patch -Np1 -i "$srcdir"/fix-webview-includes.patch
-}
-
-build() {
-    cd tdesktop-$pkgver-full
-
-    # Turns out we're allowed to use the official API key that telegram uses for their snap builds:
-    # https://github.com/telegramdesktop/tdesktop/blob/8fab9167beb2407c1153930ed03a4badd0c2b59f/snap/snapcraft.yaml#L87-L88
-    # Thanks @primeos!
-    cmake . \
-        -B build \
-        -G Ninja \
-        -DCMAKE_INSTALL_PREFIX="/usr" \
-        -DCMAKE_BUILD_TYPE=Release \
-        -DTDESKTOP_API_ID=611335 \
-        -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c \
-        -DTDESKTOP_LAUNCHER_BASENAME="telegramdesktop" \
-        -DDESKTOP_APP_SPECIAL_TARGET=""
-    ninja -C build
-}
-
-package() {
-    cd tdesktop-$pkgver-full
-    DESTDIR=$pkgdir ninja -C build install
-}

Copied: telegram-desktop/repos/community-x86_64/PKGBUILD (from rev 925016, telegram-desktop/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-04-28 20:19:47 UTC (rev 925017)
@@ -0,0 +1,47 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: hexchain <i at hexchain.org>
+pkgname=telegram-desktop
+pkgver=2.7.4
+pkgrel=1
+pkgdesc='Official Telegram Desktop client'
+arch=('x86_64')
+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' '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-webview-includes.patch")
+sha512sums=('0a796d7a8c5e5982bc60f19c41da53996a609bf794fad224e7beea5fc3816b5cf35f16b0ec2cc7279085c69996063a44085f48e1596dfe746d260a2e8f1b2d14'
+            '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/lib_webview
+    patch -Np1 -i "$srcdir"/fix-webview-includes.patch
+}
+
+build() {
+    cd tdesktop-$pkgver-full
+
+    # Turns out we're allowed to use the official API key that telegram uses for their snap builds:
+    # https://github.com/telegramdesktop/tdesktop/blob/8fab9167beb2407c1153930ed03a4badd0c2b59f/snap/snapcraft.yaml#L87-L88
+    # Thanks @primeos!
+    cmake . \
+        -B build \
+        -G Ninja \
+        -DCMAKE_INSTALL_PREFIX="/usr" \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DTDESKTOP_API_ID=611335 \
+        -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c \
+        -DTDESKTOP_LAUNCHER_BASENAME="telegramdesktop" \
+        -DDESKTOP_APP_SPECIAL_TARGET=""
+    ninja -C build
+}
+
+package() {
+    cd tdesktop-$pkgver-full
+    DESTDIR=$pkgdir ninja -C build install
+}

Deleted: fix-tgcalls-gcc10.patch
===================================================================
--- fix-tgcalls-gcc10.patch	2021-04-28 20:19:40 UTC (rev 925016)
+++ fix-tgcalls-gcc10.patch	2021-04-28 20:19:47 UTC (rev 925017)
@@ -1,34 +0,0 @@
-From eded7cc540123eaf26361958b9a61c65cb2f7cfc Mon Sep 17 00:00:00 2001
-From: John Preston <johnprestonmail at gmail.com>
-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 {
- 

Copied: telegram-desktop/repos/community-x86_64/fix-tgcalls-gcc10.patch (from rev 925016, telegram-desktop/trunk/fix-tgcalls-gcc10.patch)
===================================================================
--- fix-tgcalls-gcc10.patch	                        (rev 0)
+++ fix-tgcalls-gcc10.patch	2021-04-28 20:19:47 UTC (rev 925017)
@@ -0,0 +1,34 @@
+From eded7cc540123eaf26361958b9a61c65cb2f7cfc Mon Sep 17 00:00:00 2001
+From: John Preston <johnprestonmail at gmail.com>
+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 {
+ 

Deleted: fix-webview-includes.patch
===================================================================
--- fix-webview-includes.patch	2021-04-28 20:19:40 UTC (rev 925016)
+++ fix-webview-includes.patch	2021-04-28 20:19:47 UTC (rev 925017)
@@ -1,12 +0,0 @@
-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"
- 

Copied: telegram-desktop/repos/community-x86_64/fix-webview-includes.patch (from rev 925016, telegram-desktop/trunk/fix-webview-includes.patch)
===================================================================
--- fix-webview-includes.patch	                        (rev 0)
+++ fix-webview-includes.patch	2021-04-28 20:19:47 UTC (rev 925017)
@@ -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