summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Santini2021-08-08 12:33:41 +0200
committerGiovanni Santini2021-08-08 12:33:41 +0200
commit1e1a4e8f526638edd41a5272b06600f357445d8f (patch)
treefd4f6dcbddb23cf712a0a2b74e0070f8d2f16f67
parent51ad99bef975019d70b5cec5337e1e125591af60 (diff)
downloadaur-1e1a4e8f526638edd41a5272b06600f357445d8f.tar.gz
upgpkg: telegram-desktop-dev 2.9.0-1
- Version bump. - Dependencies updated from Arch package `telegram-desktop`. - Updated submodules. - Overall cleanup of the PKGBUILD.
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD33
2 files changed, 21 insertions, 29 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ea9338a14326..ccb356bd372e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = telegram-desktop-dev
pkgdesc = Official Telegram Desktop client - development release
- pkgver = 2.8.13
+ pkgver = 2.9.0
pkgrel = 1
url = https://desktop.telegram.org/
arch = x86_64
@@ -12,9 +12,9 @@ pkgbase = telegram-desktop-dev
makedepends = range-v3
makedepends = tl-expected
makedepends = microsoft-gsl
- makedepends = libtg_owt
makedepends = extra-cmake-modules
- makedepends = jemalloc
+ makedepends = gtk3
+ makedepends = webkit2gtk
depends = hunspell
depends = ffmpeg
depends = hicolor-icon-theme
@@ -26,16 +26,19 @@ pkgbase = telegram-desktop-dev
depends = xxhash
depends = libdbusmenu-qt5
depends = kwayland
- depends = gtk3
depends = glibmm
- depends = webkit2gtk
depends = rnnoise
depends = pipewire
depends = libxtst
depends = libxrandr
+ depends = jemalloc
+ depends = libtg_owt
+ optdepends = gtk3: GTK environment integration
+ optdepends = webkit2gtk: embedded browser features
+ optdepends = xdg-desktop-portal: desktop integration
provides = telegram-desktop
conflicts = telegram-desktop
- source = tdesktop::git+https://github.com/telegramdesktop/tdesktop#tag=v2.8.13
+ source = tdesktop::git+https://github.com/telegramdesktop/tdesktop#tag=v2.9.0
source = Catch::git+https://github.com/philsquared/Catch
source = cmake::git+https://github.com/desktop-app/cmake_helpers.git
source = codegen::git+https://github.com/desktop-app/codegen.git
@@ -45,6 +48,7 @@ pkgbase = telegram-desktop-dev
source = GSL::git+https://github.com/Microsoft/GSL.git
source = hime::git+https://github.com/hime-ime/hime.git
source = hunspell::git+https://github.com/hunspell/hunspell
+ source = jemalloc::git+https://github.com/jemalloc/jemalloc
source = lib_base::git+https://github.com/desktop-app/lib_base.git
source = lib_crl::git+https://github.com/desktop-app/lib_crl.git
source = libdbusmenu-qt::git+https://github.com/desktop-app/libdbusmenu-qt.git
@@ -61,7 +65,6 @@ pkgbase = telegram-desktop-dev
source = lib_webrtc::git+https://github.com/desktop-app/lib_webrtc.git
source = lib_webview::git+https://github.com/desktop-app/lib_webview.git
source = lz4::git+https://github.com/lz4/lz4.git
- source = mallocng::git+https://github.com/desktop-app/mallocng.git
source = nimf::git+https://github.com/hamonikr/nimf.git
source = QR::git+https://github.com/nayuki/QR-Code-generator
source = range-v3::git+https://github.com/ericniebler/range-v3.git
diff --git a/PKGBUILD b/PKGBUILD
index 2ce093cc8b04..6a00d77a8805 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
# Thanks Nicholas Guriev <guriev-ns@ya.ru> for the initial patches!
# https://github.com/mymedia2/tdesktop
pkgname=telegram-desktop-dev
-pkgver=2.8.13
+pkgver=2.9.0
pkgrel=1
pkgdesc='Official Telegram Desktop client - development release'
arch=(x86_64)
@@ -13,10 +13,13 @@ license=('GPL3')
# Although not in order, keeping them in the same order of the standard package
# for my mental sanity.
depends=('hunspell' 'ffmpeg' 'hicolor-icon-theme' 'lz4' 'minizip' 'openal' 'ttf-opensans'
- 'qt5-imageformats' 'xxhash' 'libdbusmenu-qt5' 'kwayland' 'gtk3' 'glibmm'
- 'webkit2gtk' 'rnnoise' 'pipewire' 'libxtst' 'libxrandr' )
+ 'qt5-imageformats' 'xxhash' 'libdbusmenu-qt5' 'kwayland' 'glibmm'
+ 'rnnoise' 'pipewire' 'libxtst' 'libxrandr' 'jemalloc' 'libtg_owt')
makedepends=('cmake' 'git' 'ninja' 'python' 'range-v3' 'tl-expected' 'microsoft-gsl'
- 'libtg_owt' 'extra-cmake-modules' 'jemalloc')
+ 'extra-cmake-modules' 'gtk3' 'webkit2gtk')
+optdepends=('gtk3: GTK environment integration'
+ 'webkit2gtk: embedded browser features'
+ 'xdg-desktop-portal: desktop integration')
provides=(telegram-desktop)
conflicts=(telegram-desktop)
_commit="tag=v$pkgver"
@@ -37,6 +40,7 @@ source=(
"GSL::git+https://github.com/Microsoft/GSL.git"
"hime::git+https://github.com/hime-ime/hime.git"
"hunspell::git+https://github.com/hunspell/hunspell"
+ "jemalloc::git+https://github.com/jemalloc/jemalloc"
"lib_base::git+https://github.com/desktop-app/lib_base.git"
"lib_crl::git+https://github.com/desktop-app/lib_crl.git"
"libdbusmenu-qt::git+https://github.com/desktop-app/libdbusmenu-qt.git"
@@ -53,7 +57,6 @@ source=(
"lib_webrtc::git+https://github.com/desktop-app/lib_webrtc.git"
"lib_webview::git+https://github.com/desktop-app/lib_webview.git"
"lz4::git+https://github.com/lz4/lz4.git"
- "mallocng::git+https://github.com/desktop-app/mallocng.git"
"nimf::git+https://github.com/hamonikr/nimf.git"
"QR::git+https://github.com/nayuki/QR-Code-generator"
"range-v3::git+https://github.com/ericniebler/range-v3.git"
@@ -123,10 +126,10 @@ prepare() {
git config submodule.Telegram/ThirdParty/GSL.url "$srcdir/GSL"
git config submodule.Telegram/ThirdParty/hime.url "$srcdir/hime"
git config submodule.Telegram/ThirdParty/hunspell.url "$srcdir/hunspell"
+ git config submodule.Telegram/ThirdParty/jemalloc.url "$srcdir/jemalloc"
git config submodule.Telegram/ThirdParty/libdbusmenu-qt.url "$srcdir/libdbusmenu-qt"
git config submodule.Telegram/ThirdParty/libtgvoip.url "$srcdir/libtgvoip"
git config submodule.Telegram/ThirdParty/lz4.url "$srcdir/lz4"
- git config submodule.Telegram/ThirdParty/mallocng.url "$srcdir/mallocng"
git config submodule.Telegram/ThirdParty/nimf.url "$srcdir/nimf"
git config submodule.Telegram/ThirdParty/QR.url "$srcdir/QR"
git config submodule.Telegram/ThirdParty/range-v3.url "$srcdir/range-v3"
@@ -146,35 +149,21 @@ prepare() {
# patch -Np1 -i "$srcdir/my_beautiful.patch"
# Official package patches
- cd cmake
- # force webrtc link to libjpeg and X11 libs
- echo "target_link_libraries(external_webrtc INTERFACE jpeg)" | tee -a external/webrtc/CMakeLists.txt
- echo "find_package(X11 REQUIRED COMPONENTS Xcomposite Xdamage Xext Xfixes Xrender Xrandr Xtst)" | tee -a external/webrtc/CMakeLists.txt
- echo "target_link_libraries(external_webrtc INTERFACE Xcomposite Xdamage Xext Xfixes Xrandr Xrender Xtst)" | tee -a external/webrtc/CMakeLists.txt
}
build() {
cd "$srcdir/tdesktop"
- # Before were used:
- # -DTDESKTOP_API_ID=17349
- # -DTDESKTOP_API_HASH=344583e45741c457fe1862106095a5eb
- # export CXXFLAGS="$CXXFLAGS -ffile-prefix-map=$srcdir/tdesktop="
# 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!
- # Optional flags:
- # -DTDESKTOP_DISABLE_GTK_INTEGRATION=1 \
- # -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION=1 \
- cmake . \
+ cmake \
-B build \
-G Ninja \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_BUILD_TYPE=Release \
-DTDESKTOP_API_ID=611335 \
- -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c \
- -DTDESKTOP_LAUNCHER_BASENAME="telegram-desktop" \
- -DDESKTOP_APP_SPECIAL_TARGET=""
+ -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c
ninja -C build
}