void-packages/srcpkgs/telegram-desktop/template

44 lines
1.7 KiB
Bash

# Template file for 'telegram-desktop'
pkgname=telegram-desktop
version=4.5.3
revision=1
build_style=cmake
build_helper="qemu"
configure_args="-DTDESKTOP_API_ID=209235
-DTDESKTOP_API_HASH=169ee702e1df4b6e66d80311db36cc43
-DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON
-DDESKTOP_APP_DISABLE_SPELLCHECK=$(vopt_if spellcheck 'false' 'true')
-DWaylandScanner_EXECUTABLE=/usr/bin/wayland-scanner
-DQT_HOST_PATH=/usr"
hostmakedepends="pkg-config qt6-base-devel python3 extra-cmake-modules
qt6-wayland-devel wayland-devel protobuf"
makedepends="alsa-lib-devel ffmpeg-devel libdbusmenu-glib-devel libopenal-devel
minizip-devel opus-devel xxHash-devel pulseaudio-devel range-v3
qt6-svg-devel libva-devel rapidjson liblz4-devel liblzma-devel gtk+3-devel
MesaLib-devel qt6-wayland-devel qt6-qt5compat-devel libatomic-devel
xcb-util-keysyms-devel $(vopt_if spellcheck hunspell-devel) protobuf-devel
glibmm2.68-devel tg_owt webkit2gtk-devel rnnoise-devel jemalloc-devel qt6-declarative-devel"
depends="qt6-imageformats ttf-opensans"
short_desc="Telegram Desktop messaging app"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later, OpenSSL"
homepage="https://desktop.telegram.org/"
changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
checksum=3e338607708751813df36b677904e2e652f8adfac669da418c8dab4588a4f70f
build_options="spellcheck"
build_options_default="spellcheck"
case $XBPS_TARGET_MACHINE in
mips*) broken="unsupported";;
esac
if [ "$XBPS_WORDSIZE" -eq 32 ]; then
nodebug=yes
fi
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
broken="UI doesn't go beyond initial screen, also LE specific code in networking"
fi