void-packages

Void Source Packages
git clone git://ezup.dev/void-packages.git
Log | Files | Refs | README | LICENSE

commit 89e983b52e7f0a047030f7263a5d2114f7f9d360
parent e67777074b13768013a76fa3ce66594c7a76c0ab
Author: Dash Eclipse <dash@ezup.dev>
Date:   Thu, 23 Jul 2020 01:29:43 +0000

New package: telegram-desktop

Diffstat:
MREADME | 19++++++++++---------
Asrcpkgs/telegram-desktop/patches/0001-musl.patch | 48++++++++++++++++++++++++++++++++++++++++++++++++
Asrcpkgs/telegram-desktop/patches/0002-PPC-big-endian.patch | 22++++++++++++++++++++++
Asrcpkgs/telegram-desktop/patches/cmake-pkgconfig-rlottie.patch | 17+++++++++++++++++
Asrcpkgs/telegram-desktop/template | 68++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Asrcpkgs/telegram-desktop/update | 3+++
6 files changed, 168 insertions(+), 9 deletions(-)

diff --git a/README b/README @@ -1,15 +1,16 @@ Dash Eclipse's Void Linux Repository ------------------------------------ - [pkg] [git] [patches/notes] + [pkg] [git] [patches/notes] -* dwl * - dwm systray, nordtheme color - lilo keytab-lilo patch - pass * -* scroll * - slock scrollback, scrollback-mouse, nordtheme -* wshowkeys * +* dwl * + dwm systray, nordtheme color + lilo keytab-lilo patch + pass * +* scroll * + slock scrollback, scrollback-mouse, nordtheme +* wshowkeys * + telegram-desktop * * trojan -* wterm * +* wterm * * ydotool diff --git a/srcpkgs/telegram-desktop/patches/0001-musl.patch b/srcpkgs/telegram-desktop/patches/0001-musl.patch @@ -0,0 +1,48 @@ +--- Telegram/lib_base/base/platform/linux/base_info_linux.cpp 2020-06-03 09:28:30.000000000 +0200 ++++ - 2020-06-08 00:40:30.503197310 +0200 +@@ -13,7 +13,6 @@ + #include <QtCore/QVersionNumber> + #include <QtCore/QDate> + #include <QtGui/QGuiApplication> +-#include <gnu/libc-version.h> + + namespace Platform { + namespace { +@@ -84,8 +74,7 @@ + return "Linux " + + (list.isEmpty() ? QString() : list[0] + ' ') + + (IsWayland() ? "Wayland " : "X11 ") +- + "glibc " +- + GetGlibCVersion(); ++ + "void "; + } + + QString SystemCountry() { +@@ -103,11 +92,7 @@ + QDate WhenSystemBecomesOutdated() { + if (IsLinux32Bit()) { + return QDate(2020, 9, 1); +- } else if (const auto version = GetGlibCVersion(); !version.isEmpty()) { +- if (QVersionNumber::fromString(version) < QVersionNumber(2, 23)) { +- return QDate(2020, 9, 1); // Older than Ubuntu 16.04. +- } +- } ++ } + return QDate(); + } + +@@ -129,14 +114,6 @@ + } + } + +-QString GetGlibCVersion() { +- static const auto result = [&] { +- const auto version = QString::fromLatin1(gnu_get_libc_version()); +- return QVersionNumber::fromString(version).isNull() ? QString() : version; +- }(); +- return result; +-} +- + bool IsWayland() { + return QGuiApplication::platformName().startsWith("wayland", Qt::CaseInsensitive); + } diff --git a/srcpkgs/telegram-desktop/patches/0002-PPC-big-endian.patch b/srcpkgs/telegram-desktop/patches/0002-PPC-big-endian.patch @@ -0,0 +1,22 @@ +Subject: [PATCH] PPC big endian + +--- + Telegram/SourceFiles/config.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git Telegram/SourceFiles/config.h Telegram/SourceFiles/config.h +index fb7b54e4d..6a873fbd7 100644 +--- Telegram/SourceFiles/config.h ++++ Telegram/SourceFiles/config.h +@@ -177,7 +177,7 @@ constexpr auto ApiHash = "344583e45741c457fe1862106095a5eb"; + #endif // TDESKTOP_API_ID && TDESKTOP_API_HASH + + #if Q_BYTE_ORDER == Q_BIG_ENDIAN +-#error "Only little endian is supported!" ++#warning "Only little endian is supported!" + #endif // Q_BYTE_ORDER == Q_BIG_ENDIAN + + #if (TDESKTOP_ALPHA_VERSION != 0) +-- +2.24.1 + diff --git a/srcpkgs/telegram-desktop/patches/cmake-pkgconfig-rlottie.patch b/srcpkgs/telegram-desktop/patches/cmake-pkgconfig-rlottie.patch @@ -0,0 +1,17 @@ +--- cmake/external/rlottie/CMakeLists.txt 2020-06-17 18:07:24.000000000 +0200 ++++ - 2020-06-19 10:17:31.071247004 +0200 +@@ -8,14 +8,9 @@ + add_library(external_rlottie INTERFACE IMPORTED GLOBAL) + add_library(desktop-app::external_rlottie ALIAS external_rlottie) + +- find_package(rlottie) +- if (rlottie_FOUND) +- target_link_libraries(external_rlottie INTERFACE rlottie::rlottie) +- else() + find_package(PkgConfig REQUIRED) + pkg_check_modules(RLOTTIE REQUIRED IMPORTED_TARGET rlottie) + target_link_libraries(external_rlottie INTERFACE PkgConfig::RLOTTIE) +- endif() + else() + add_library(external_rlottie OBJECT) + add_library(desktop-app::external_rlottie ALIAS external_rlottie) diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template @@ -0,0 +1,68 @@ +# Template file for 'telegram-desktop' +pkgname=telegram-desktop +version=2.1.20 +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 + -DTDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME=ON + -DTDESKTOP_USE_PACKAGED_TGVOIP=OFF + -DDESKTOP_APP_USE_PACKAGED_EXPECTED=OFF + -DDESKTOP_APP_USE_PACKAGED_VARIANT=OFF + -DDESKTOP_APP_USE_PACKAGED_GSL=OFF + -DDESKTOP_APP_DISABLE_SPELLCHECK=$(vopt_if spellcheck 'false' 'true')" +hostmakedepends="pkg-config qt5-qmake qt5-host-tools python qt5-devel" +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 rlottie-devel gtk+3-devel + MesaLib-devel libdbusmenu-qt5-devel $(vopt_if spellcheck hunspell-devel) + qt5-wayland-devel" +depends="qt5-imageformats qt5-core>=5.15.0<5.15.1" +short_desc="Telegram Desktop messaging app" +maintainer="John <me@johnnynator.dev>" +license="GPL-3.0-or-later WITH 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=ec37a9518388eadc93c849f69da6f1374e408cc20feb0ab2f5fc5c3232a7992c + +build_options="spellcheck" +build_options_default="spellcheck" + +case $XBPS_TARGET_MACHINE in + mips*) broken="unsupported";; +esac + +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" +fi + +if [ "$XBPS_WORDSIZE" -eq 32 ]; then + nodebug=yes +fi + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-devel" +fi + +post_extract() { + _qt5_dep_ver="${depends#*>=}" + _qt5_dep_ver="${_qt5_dep_ver%<*}" + _qt5_version="$(xbps-uhelper version qt5-core)" + + if [[ "${_qt5_version%_*}" != "${_qt5_dep_ver}" ]]; then + echo + msg_red "Qt5 version doesn't match version listed in \$depends\\n" + msg_red "${_qt5_version%_*} does not match ${_qt5_dep_ver}\\n" + exit 1 + fi + if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + vsed -e '/desktop-app::external_openal/ a atomic' \ + -i Telegram/CMakeLists.txt + fi +} diff --git a/srcpkgs/telegram-desktop/update b/srcpkgs/telegram-desktop/update @@ -0,0 +1,3 @@ +site=https://github.com/telegramdesktop/tdesktop/releases/latest +pattern='href="/telegramdesktop/tdesktop/releases/tag/v\K[\d\.]+(?=")' +