[arch-commits] Commit in telegram-desktop/trunk (PKGBUILD)
Jiachen Yang
farseerfc at archlinux.org
Fri Aug 21 03:42:11 UTC 2020
Date: Friday, August 21, 2020 @ 03:42:09
Author: farseerfc
Revision: 685729
upgpkg: telegram-desktop 2.3.0-2: telegram-desktop 2.3 enable libwebrtc
Modified:
telegram-desktop/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-21 03:40:15 UTC (rev 685728)
+++ PKGBUILD 2020-08-21 03:42:09 UTC (rev 685729)
@@ -2,18 +2,26 @@
# Contributor: hexchain <i at hexchain.org>
pkgname=telegram-desktop
pkgver=2.3.0
-pkgrel=1
+pkgrel=2
pkgdesc='Official Telegram Desktop client'
arch=('x86_64')
url="https://desktop.telegram.org/"
license=('GPL3')
-depends=('hunspell' 'ffmpeg' 'hicolor-icon-theme' 'lz4' 'minizip' 'openal' 'enchant'
+depends=('hunspell' 'ffmpeg' 'hicolor-icon-theme' 'lz4' 'minizip' 'openal'
'qt5-imageformats' 'xxhash' 'libdbusmenu-qt5' 'qt5-wayland' 'gtk3')
-makedepends=('cmake' 'git' 'ninja' 'python' 'range-v3' 'tl-expected' 'microsoft-gsl')
+makedepends=('cmake' 'git' 'ninja' 'python' 'range-v3' 'tl-expected' 'microsoft-gsl' 'libwebrtc')
optdepends=('ttf-opensans: default Open Sans font family')
-source=("https://github.com/telegramdesktop/tdesktop/releases/download/v${pkgver}/tdesktop-${pkgver}-full.tar.gz")
-sha512sums=('65fa7641ed9ba2fcd4181e3f6bbc036dcf2ddcb12eb10a15a601e0fce79c0f99741b55741bb3c18b9de5d3cdb07190761ea0f8fbe111563f784e0ad3faea2ede')
+source=("https://github.com/telegramdesktop/tdesktop/releases/download/v${pkgver}/tdesktop-${pkgver}-full.tar.gz"
+"set_webrtc_location.patch::https://github.com/desktop-app/cmake_helpers/commit/7dc5da757124cb2d644e289a37d8957823a7f6c9.patch")
+sha512sums=('65fa7641ed9ba2fcd4181e3f6bbc036dcf2ddcb12eb10a15a601e0fce79c0f99741b55741bb3c18b9de5d3cdb07190761ea0f8fbe111563f784e0ad3faea2ede'
+ '5405ec01bd19350141588aad40eec63e47cd601d4945ed28ba2aaf077b398f4b746c3299e047bf0fb534f073ac1b9d4a515c5cc3eca9cdc754ccf87d2ce7176e')
+prepare() {
+ cd tdesktop-$pkgver-full/cmake
+ patch -Np1 -i ../../set_webrtc_location.patch
+ sed 's|set(webrtc_build_loc ${webrtc_loc}/out/$<CONFIG>/obj)|set(webrtc_build_loc /usr/lib)|' -i external/webrtc/CMakeLists.txt
+}
+
build() {
cd tdesktop-$pkgver-full
@@ -30,9 +38,8 @@
-DTDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME=ON \
-DTDESKTOP_LAUNCHER_BASENAME="telegramdesktop" \
-DTDESKTOP_USE_PACKAGED_TGVOIP=OFF \
- -DDESKTOP_APP_DISABLE_WEBRTC_INTEGRATION=ON \
-DDESKTOP_APP_SPECIAL_TARGET="" \
- -DDESKTOP_APP_USE_ENCHANT=ON
+ -DDESKTOP_APP_WEBRTC_LOCATION=/usr/include/libwebrtc
ninja -C build
}
More information about the arch-commits
mailing list