Christian Heusel pushed to branch main at Arch Linux / Packaging / Packages / 
telegram-desktop


Commits:
b1060b9d by Christian Heusel at 2024-09-25T10:53:25+02:00
upgpkg: 5.5.5-2: Rebuild for protobuf 28.2

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + telegram-desktop-5_5_5-fix_build_with_cppgir.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = telegram-desktop
        pkgdesc = Official Telegram Desktop client
        pkgver = 5.5.5
-       pkgrel = 1
+       pkgrel = 2
        url = https://desktop.telegram.org/
        arch = x86_64
        license = GPL3
@@ -52,6 +52,8 @@ pkgbase = telegram-desktop
        optdepends = webkit2gtk: embedded browser features
        optdepends = xdg-desktop-portal: desktop integration
        source = 
https://github.com/telegramdesktop/tdesktop/releases/download/v5.5.5/tdesktop-5.5.5-full.tar.gz
+       source = telegram-desktop-5_5_5-fix_build_with_cppgir.patch
        sha512sums = 
88cd526fb02b7b0459cb1bd1b0c57147b2261e57c392d2cb62964015ef6b26e202fba717b35d74201c41becf0a5d78ef4d9d593b5666b3f0a0db646e40bfd1fc
+       sha512sums = 
a65bca7d330519657fa647922df4c6d69f3d6af4008656084945a3c448aad62f228f91de8c5988cd9163856f376c0c136254eb68f6c9654ffdf9f5d3f52bc235
 
 pkgname = telegram-desktop


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 # Contributor: hexchain <[email protected]>
 pkgname=telegram-desktop
 pkgver=5.5.5
-pkgrel=1
+pkgrel=2
 pkgdesc='Official Telegram Desktop client'
 arch=('x86_64')
 url="https://desktop.telegram.org/";
@@ -17,8 +17,14 @@ makedepends=('cmake' 'git' 'ninja' 'python' 'range-v3' 
'tl-expected' 'microsoft-
              'glib2-devel')
 optdepends=('webkit2gtk: embedded browser features'
             'xdg-desktop-portal: desktop integration')
-source=("https://github.com/telegramdesktop/tdesktop/releases/download/v${pkgver}/tdesktop-${pkgver}-full.tar.gz";)
-sha512sums=('88cd526fb02b7b0459cb1bd1b0c57147b2261e57c392d2cb62964015ef6b26e202fba717b35d74201c41becf0a5d78ef4d9d593b5666b3f0a0db646e40bfd1fc')
+source=("https://github.com/telegramdesktop/tdesktop/releases/download/v${pkgver}/tdesktop-${pkgver}-full.tar.gz";
+        "telegram-desktop-5_5_5-fix_build_with_cppgir.patch")
+sha512sums=('88cd526fb02b7b0459cb1bd1b0c57147b2261e57c392d2cb62964015ef6b26e202fba717b35d74201c41becf0a5d78ef4d9d593b5666b3f0a0db646e40bfd1fc'
+            
'a65bca7d330519657fa647922df4c6d69f3d6af4008656084945a3c448aad62f228f91de8c5988cd9163856f376c0c136254eb68f6c9654ffdf9f5d3f52bc235')
+
+prepare() {
+    patch -Np1 -d tdesktop-$pkgver-full/cmake/external/glib/cppgir -i 
"${srcdir}/telegram-desktop-5_5_5-fix_build_with_cppgir.patch"
+}
 
 build() {
     CXXFLAGS+=' -ffat-lto-objects'


=====================================
telegram-desktop-5_5_5-fix_build_with_cppgir.patch
=====================================
@@ -0,0 +1,14 @@
+diff --git i/tools/repository.cpp w/tools/repository.cpp
+index 5b5c737..9140851 100644
+--- i/tools/repository.cpp
++++ w/tools/repository.cpp
+@@ -10,7 +10,8 @@ static std::set<std::string> basic_types{"gchar", "guchar", 
"gshort", "gushort",
+     "gint", "guint", "glong", "gulong", "gssize", "gsize", "gintptr",
+     "guintptr", "gpointer", "gconstpointer", "gboolean", "gint8", "gint16",
+     "guint8", "guint16", "gint32", "guint32", "gint64", "guint64", "gfloat",
+-    "gdouble", "GType", "utf8", "filename", "gi::cstring", "gunichar"};
++    "gdouble", "GType", "utf8", "filename", "gi::cstring", "gunichar",
++    "dev_t", "gid_t", "pid_t", "socklen_t", "uid_t"};
+ 
+ class RepositoryPriv : public Repository
+ {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/telegram-desktop/-/commit/b1060b9deef05a3efaadf61d3e99dafa155710ea

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/telegram-desktop/-/commit/b1060b9deef05a3efaadf61d3e99dafa155710ea
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to