<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
  <maintainer type="person">
    <email>127086564+MrPenguin07@users.noreply.github.com</email>
    <name>MrPenguin07</name>
  </maintainer>
  <longdescription>
    Telegram Desktop live packaging derived from mva-overlay, maintained here
    with build fixes and optional client-side media patches. See README.md for
    upstream attribution, source revisions, and licensing notices.
  </longdescription>
  <use>
    <flag name="custom-api-id">Use custom API ID and API HASH (you must set it either in make.conf or in /etc/portage/env/net-im/telegram-desktop)</flag>
    <!-- <flag name="dbus">Enable D-Bus integration</flag> -->
    <!-- <flag name="webrtc">Enable WebRTC integration</flag> -->
    <flag name="enchant">Use <pkg>app-text/enchant</pkg> for spell checking</flag>
    <flag name="hunspell">Use <pkg>app-text/enchant</pkg> for spell checking</flag>
    <flag name="lto">Enable Link Time Optimizations (build will take 20+G RAM and binary will be about 2G)</flag>
    <!-- <flag name="libdispatch">Use <pkg>dev-libs/libdispatch</pkg> to speed up concurrent code execution</flag> -->
    <flag name="pipewire">Use <pkg>media-video/pipewire</pkg> as sound server</flag>
    <!-- <flag name="libcxx">Build with <pkg>sys-libs/libcxx</pkg> as sdtlib</flag> -->
    <!-- <flag name="system-gsl">Use system-wide installed <pkg>dev-cpp/ms-gsl</pkg> instead of bundled one</flag> -->
    <!-- <flag name="system-expected">Use system-wide installed <pkg>dev-cpp/tl-expected</pkg> instead of bundled one</flag> -->
    <!-- <flag name="system-libtgvoip">Use system-wide installed <pkg>media-libs/libtgvoip</pkg> instead of bundled one</flag> -->
    <!-- <flag name="system-rlottie">Use system-wide installed <pkg>media-libs/rlottie</pkg> instead of bundled one</flag> -->
    <!-- <flag name="system-variant">Use system-wide installed <pkg>dev-cpp/variant</pkg> instead of bundled one</flag> -->
    <flag name="fonts">Whether to use bundled fonts, or look for correspondig fonts in user's system</flag>
    <flag name="tdesktop_patches_ignore-restrictions">Apply optional client-side saving, copying, and invite-preview restriction patches</flag>
    <flag name="tdesktop_patches_unblur">Apply the optional image and video unblur patch in chats and shared media</flag>
    <!-- <flag name="qt6-imageformats">Use bundled <pkg>kde-frameworks/kimageformats</pkg> patched for Qt6 instead of system one</flag> -->
  </use>
  <upstream>
    <remote-id type="github">telegramdesktop/tdesktop</remote-id>
    <bugs-to>https://github.com/telegramdesktop/tdesktop/issues</bugs-to>
  </upstream>
</pkgmetadata>
