aboutsummaryrefslogtreecommitdiffstats
path: root/community/telegram-desktop/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/telegram-desktop/APKBUILD')
-rw-r--r--community/telegram-desktop/APKBUILD126
1 files changed, 67 insertions, 59 deletions
diff --git a/community/telegram-desktop/APKBUILD b/community/telegram-desktop/APKBUILD
index 1fcee4e501f..e61bb06dc11 100644
--- a/community/telegram-desktop/APKBUILD
+++ b/community/telegram-desktop/APKBUILD
@@ -1,95 +1,103 @@
# Contributor: Leo <thinkabit.ukim@gmail.com>
-# Maintainer: Donoban <donoban@riseup.net>
+# Contributor: Nulo <alpine@nulo.in>
+# Contributor: Donoban <donoban@riseup.net>
+# Maintainer:
pkgname=telegram-desktop
-pkgver=2.7.5
-pkgrel=0
+# NOTE: Keep in mind that seemingly normal releases may be pre-releases.
+# Check GitHub to make sure:
+# https://github.com/telegramdesktop/tdesktop/releases
+pkgver=4.15.0
+pkgrel=6
pkgdesc="Telegram Desktop messaging app"
-options="!check" # Requires Catch2 to be packaged.
+options="!check" # no test suite
url="https://desktop.telegram.org/"
-# x86: textrels in tg_owt
-# s390x, mips64 and riscv64 blocked by webkit2gtk
# armhf blocked by qt5-qtwayland
-arch="all !x86 !ppc64le !s390x !mips64 !armhf !riscv64"
+# ppc64le and s390x blocked by tg_owt
+# x86, riscv64: textrels
+# riscv64: libdispatch
+arch="all !x86 !ppc64le !s390x !armhf !riscv64"
license="GPL-3.0-or-later WITH OpenSSL"
-depends="qt5-qtimageformats ttf-opensans"
+
+depends="qt6-qtimageformats font-opensans"
+
+# Sorted according to
+# https://github.com/telegramdesktop/tdesktop/wiki/The-Packaged-Building-Mode
+# libtgvoip is bundled as suggested by upstream
+# jemalloc is disabled
+# rlottie is bundled as suggested by upstream
+# We are forcing it to use packaged libvpx with a patch below
+# kcoreaddons is bundled as it requires to be built with Qt6.
makedepends="
+ python3
+ extra-cmake-modules
+ qt6-qt5compat-dev
+ qt6-qtsvg-dev
+ qt6-qtwayland-dev
+
+ tg_owt-dev<20230314
+ opus-dev
alsa-lib-dev
- glibmm-dev
- cmake
- enchant2-dev
+ pulseaudio-dev
+
+ boost-dev
+ fmt-dev
+
+ abseil-cpp-dev
ffmpeg-dev
- gtk+3.0-dev
+ glibmm2.68-dev
+ gobject-introspection-dev
+ libdispatch-dev
+ gsl-dev
hunspell-dev
- libjpeg-turbo-dev
- libdbusmenu-glib-dev
- libdbusmenu-qt-dev
- libexecinfo-dev
- libexif-dev
- libva-dev
- libvpx-dev
- libvdpau-dev
- libxkbcommon-dev
lz4-dev
minizip-dev
+ msgsl
openal-soft-dev
- openssl1.1-compat-dev
- opus-dev
- portaudio-dev
- pulseaudio-dev
- python3
- qtchooser
+ openssl-dev>3
range-v3-dev
- kwayland-dev
- samurai
- webkit2gtk-dev
- tg_owt-dev
+ rnnoise-dev
tl-expected
+ wayland-dev
+ libxcb-dev
+ xcb-util-keysyms-dev
xxhash-dev
- xz-dev
zlib-dev
- xcb-util-keysyms-dev
+
+ libvpx-dev
+ protobuf-dev
+
+ cmake
+ samurai
+ meson
"
+
+# small-sizes.patch is for postmarketOS. It makes UI elements fit in small
+# screens.
+# https://github.com/telegramdesktop/tdesktop/issues/8058#issuecomment-643461605
source="
https://github.com/telegramdesktop/tdesktop/releases/download/v$pkgver/tdesktop-$pkgver-full.tar.gz
- remove-glibc.patch
small-sizes.patch
- add-libvpx.patch
"
builddir="$srcdir/tdesktop-$pkgver-full"
build() {
- if [ "$CBUILD" != "$CHOST" ]; then
- CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
- fi
-
- cmake -B build -G Ninja \
+ LDFLAGS="$LDFLAGS -Wl,-z,stack-size=1024768" \
+ cmake -B build -G Ninja . \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DBUILD_SHARED_LIBS=True \
- -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
-DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON \
- -DDESKTOP_APP_DISABLE_SPELLCHECK=OFF \
- -DDESKTOP_APP_LOTTIE_USE_CACHE=ON \
- -DDESKTOP_APP_USE_GLIBC_WRAPS=OFF \
- -DDESKTOP_APP_USE_PACKAGED=ON \
-DTDESKTOP_API_ID=17349 \
-DTDESKTOP_API_HASH=344583e45741c457fe1862106095a5eb \
- -DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF \
- -DTDESKTOP_USE_PACKAGED_TGVOIP=OFF \
- -DTDESKTOP_LAUNCHER_BASENAME=telegram-desktop \
- -DDESKTOP_APP_USE_PACKAGED_GSL=OFF \
- -DDESKTOP_APP_USE_PACKAGED_VARIANT=OFF \
- -DDESKTOP_APP_USE_PACKAGED_FONTS=ON \
- $CMAKE_CROSSOPTS .
- ninja -C build
+ -DDESKTOP_APP_DISABLE_JEMALLOC=ON \
+ -DDESKTOP_APP_USE_PACKAGED=ON
+ cmake --build build
}
package() {
- DESTDIR="$pkgdir" ninja -C build install
+ DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
-89c5ade6223e8c18d27e6c5c79321957e1c5c2d90a0ef1dcf2d874c1dfb6c93d976d16d8fc53d94a9851a27b25d780930289a40c20d02bfd6ebdbb6e8769dc52 tdesktop-2.7.5-full.tar.gz
-b276001d1616cb5dbacbcd18510d0bd4b9d9f7b7a895b05fb6329866f5bdb7b69f536f7d7914436c8ea975c4f7951a2bb3efd9209c38df115b1d85e0ed099b04 remove-glibc.patch
-3d1b8e6f870fc780f9ae8bc6a67eb676a5c5f686dc79e84cd6d64cb3cfafb1be626d0cc3960ffc67cecca21568764a0137c7303a89045fa59f91ba4eb5d8caed small-sizes.patch
-c6b77a52547dc45f91f89cdd014c09fe318c49d34e88c4093f206b42ea3e61781a9447dbb4096424a845a519e101242bcac789272e8815a04c1be908cd304c37 add-libvpx.patch
+95aa5f14a9a88b9c6421049445f59f1c5c5d7ab4ca4e8b8f4ab7389bdb8f3cc6b29fea270574881633035acec769ba271261f84ec269010c63af28a03719da98 tdesktop-4.15.0-full.tar.gz
+396b5577bdeb852be3659fcbf09a1ebdc33432baea49296869e2f968d61343679187ed4b923c51c8f417b8d4679aedd7ac863abed255b5b6b1b589029fdc34f6 small-sizes.patch
"