50 lines
1.9 KiB
Bash
50 lines
1.9 KiB
Bash
nocross="https://build.voidlinux.org/builders/armv6l_builder/builds/34781/steps/shell_3/logs/stdio"
|
|
# Template file for 'telegram-desktop'
|
|
pkgname=telegram-desktop
|
|
version=2.8.4
|
|
revision=1
|
|
wrksrc="tdesktop-${version}-full"
|
|
build_style=cmake
|
|
build_helper="qemu"
|
|
configure_args="-DTDESKTOP_API_ID=209235
|
|
-DTDESKTOP_API_HASH=169ee702e1df4b6e66d80311db36cc43
|
|
-DDESKTOP_APP_USE_GLIBC_WRAPS=OFF
|
|
-DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON
|
|
-DTDESKTOP_LAUNCHER_BASENAME=org.telegram.desktop.desktop
|
|
-DDESKTOP_APP_DISABLE_SPELLCHECK=$(vopt_if spellcheck 'false' 'true')"
|
|
hostmakedepends="pkg-config qt5-qmake qt5-host-tools python extra-cmake-modules
|
|
qt5-wayland"
|
|
makedepends="alsa-lib-devel ffmpeg-devel libdbusmenu-glib-devel libopenal-devel
|
|
minizip-devel opus-devel xxHash-devel pulseaudio-devel qt5-devel range-v3
|
|
libva-devel rapidjson liblz4-devel liblzma-devel gtk+3-devel
|
|
MesaLib-devel libdbusmenu-qt5-devel qt5-wayland-devel libatomic-devel
|
|
xcb-util-keysyms-devel $(vopt_if spellcheck hunspell-devel)
|
|
kwayland-devel glibmm-devel tg_owt webkit2gtk-devel rnnoise-devel"
|
|
depends="qt5-imageformats qt5-core>=5.15.2<5.16.0"
|
|
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=0a2a68590cdbccb40ff835516e9c575c761c91f83712891f69a5310fcb23a6a0
|
|
|
|
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 [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-devel"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
|
broken="UI doesn't go beyond initial screen, also LE specific code in networking"
|
|
fi
|