diff options
author | lilac | 2021-12-29 16:01:09 +0800 |
---|---|---|
committer | lilac | 2021-12-29 16:01:09 +0800 |
commit | 8beb2d04773fbd1bc8a8b518b30df3dc4153d244 (patch) | |
tree | 99e3789b7b8d1ff199d43820dbc7d0cc10920bf1 /PKGBUILD | |
parent | 59aa509b55bc1f409d59a034212928e071655096 (diff) | |
download | aur-8beb2d04773fbd1bc8a8b518b30df3dc4153d244.tar.gz |
[lilac] updated to 3.3.1.r4.gffe420859-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 26 insertions, 16 deletions
@@ -1,17 +1,17 @@ # Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com> # Contributor: hexchain <i@hexchain.org> pkgname=telegram-desktop-git -pkgver=3.1.9.r31.g7222bc63f +pkgver=3.3.1.r4.gffe420859 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' 'qt5-svg' 'xxhash' 'libdbusmenu-qt5' 'kwayland' 'glibmm' - 'rnnoise' 'pipewire' 'libxtst' 'libxrandr' 'jemalloc' 'libtg_owt-git') + 'qt5-imageformats' 'qt5-svg' 'qt5-wayland' 'libdbusmenu-qt5' 'xxhash' 'kwayland' 'glibmm' + 'rnnoise' 'pipewire' 'libxtst' 'libxrandr' 'jemalloc' 'abseil-cpp') makedepends=('cmake' 'git' 'ninja' 'python' 'range-v3' 'tl-expected' 'microsoft-gsl' - 'extra-cmake-modules' 'gtk3' 'webkit2gtk') + 'extra-cmake-modules' 'gtk3' 'webkit2gtk' 'libtg_owt-git' 'clang') optdepends=('gtk3: GTK environment integration' 'webkit2gtk: embedded browser features' 'xdg-desktop-portal: desktop integration') @@ -19,10 +19,10 @@ provides=("telegram-desktop") conflicts=("telegram-desktop") ## source array generated from: # python -c 'import configparser, os.path; c=configparser.ConfigParser();c.read(".gitmodules"); print("\n".join(f"\t\"telegram-desktop-{path}::git+{u}\"" for s in c.sections() if (url:=c[s]["url"], path:=os.path.basename(c[s]["path"]), u:= url if url.endswith(".git") else url+".git")))' -source=("tdesktop::git+https://github.com/telegramdesktop/tdesktop.git#tag=dev" - "telegram-desktop-libtgvoip::git+https://github.com/telegramdesktop/libtgvoip" +source=("tdesktop::git+https://github.com/telegramdesktop/tdesktop.git#branch=dev" + "telegram-desktop-libtgvoip::git+https://github.com/telegramdesktop/libtgvoip.git" "telegram-desktop-GSL::git+https://github.com/Microsoft/GSL.git" - "telegram-desktop-Catch::git+https://github.com/philsquared/Catch" + "telegram-desktop-Catch::git+https://github.com/philsquared/Catch.git" "telegram-desktop-xxHash::git+https://github.com/Cyan4973/xxHash.git" "telegram-desktop-rlottie::git+https://github.com/desktop-app/rlottie.git" "telegram-desktop-lz4::git+https://github.com/lz4/lz4.git" @@ -34,14 +34,14 @@ source=("tdesktop::git+https://github.com/telegramdesktop/tdesktop.git#tag=dev" "telegram-desktop-lib_rlottie::git+https://github.com/desktop-app/lib_rlottie.git" "telegram-desktop-lib_lottie::git+https://github.com/desktop-app/lib_lottie.git" "telegram-desktop-lib_tl::git+https://github.com/desktop-app/lib_tl.git" - "telegram-desktop-lib_spellcheck::git+https://github.com/desktop-app/lib_spellcheck" + "telegram-desktop-lib_spellcheck::git+https://github.com/desktop-app/lib_spellcheck.git" "telegram-desktop-lib_storage::git+https://github.com/desktop-app/lib_storage.git" "telegram-desktop-cmake::git+https://github.com/desktop-app/cmake_helpers.git" - "telegram-desktop-expected::git+https://github.com/TartanLlama/expected" - "telegram-desktop-QR::git+https://github.com/nayuki/QR-Code-generator" + "telegram-desktop-expected::git+https://github.com/TartanLlama/expected.git" + "telegram-desktop-QR::git+https://github.com/nayuki/QR-Code-generator.git" "telegram-desktop-lib_qr::git+https://github.com/desktop-app/lib_qr.git" "telegram-desktop-libdbusmenu-qt::git+https://github.com/desktop-app/libdbusmenu-qt.git" - "telegram-desktop-hunspell::git+https://github.com/hunspell/hunspell" + "telegram-desktop-hunspell::git+https://github.com/hunspell/hunspell.git" "telegram-desktop-range-v3::git+https://github.com/ericniebler/range-v3.git" "telegram-desktop-fcitx-qt5::git+https://github.com/fcitx/fcitx-qt5.git" "telegram-desktop-nimf::git+https://github.com/hamonikr/nimf.git" @@ -51,7 +51,9 @@ source=("tdesktop::git+https://github.com/telegramdesktop/tdesktop.git#tag=dev" "telegram-desktop-tgcalls::git+https://github.com/TelegramMessenger/tgcalls.git" "telegram-desktop-lib_webview::git+https://github.com/desktop-app/lib_webview.git" "telegram-desktop-lib_waylandshells::git+https://github.com/desktop-app/lib_waylandshells.git" - "telegram-desktop-jemalloc::git+https://github.com/jemalloc/jemalloc" + "telegram-desktop-jemalloc::git+https://github.com/jemalloc/jemalloc.git" + "telegram-desktop-kwayland::git+https://github.com/KDE/kwayland.git" + "telegram-desktop-dispatch::git+https://github.com/apple/swift-corelibs-libdispatch.git" ) sha512sums=('SKIP' 'SKIP' @@ -85,6 +87,8 @@ sha512sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' + 'SKIP' + 'SKIP' 'SKIP') pkgver() { cd "$srcdir/tdesktop" @@ -128,7 +132,13 @@ prepare() { git config submodule.Telegram/lib_webview.url "$srcdir/telegram-desktop-lib_webview" git config submodule.Telegram/lib_waylandshells.url "$srcdir/telegram-desktop-lib_waylandshells" git config submodule.Telegram/ThirdParty/jemalloc.url "$srcdir/telegram-desktop-jemalloc" + git config submodule.Telegram/ThirdParty/kwayland.url "$srcdir/telegram-desktop-kwayland" + git config submodule.Telegram/ThirdParty/dispatch.url "$srcdir/telegram-desktop-dispatch" git submodule update + + # remove -Werror in dispatch + sed -i "s/Werror/Wno-error/g" "$srcdir/tdesktop/Telegram/ThirdParty/dispatch/src/CMakeLists.txt" + sed -i "s/Werror/Wno-error/g" "$srcdir/tdesktop/Telegram/ThirdParty/dispatch/cmake/modules/DispatchCompilerWarnings.cmake" } build() { @@ -137,15 +147,15 @@ build() { # 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 . \ + cmake \ -B build \ -G Ninja \ + -DDESKTOP_APP_QT6=off \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_BUILD_TYPE=Release \ -DTDESKTOP_API_ID=611335 \ - -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c \ - -DTDESKTOP_LAUNCHER_BASENAME="telegramdesktop" \ - -DDESKTOP_APP_SPECIAL_TARGET="" + -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c + # Use Qt5 for the time being until kwayland has an easier way to work with Qt6. ninja -C build } |