summaryrefslogtreecommitdiffstats
path: root/packages/net-im/ayugram-desktop/ayugram-desktop-7.2.9.exheres-0
blob: 11d8283a2e4f7be59009dc8d291920260c57ed25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Copyright 2026 Gurov <thuggerthugger1@duck.com>
# Distributed under the terms of the GNU General Public License v2

require cmake
require flag-o-matic

SUMMARY="Telegram desktop client with customization and Ghost mode"
HOMEPAGE="https://github.com/AyuGram/AyuGramDesktop"
DOWNLOADS="https://github.com/AyuGram/AyuGramDesktop/releases/download/v${PV}/AyuGramDesktop-${PV}-full.tar.gz -> ${PNV}-full.tar.gz"

LICENCES="BSD-3 GPL-3+ LGPL-2+"
SLOT="0"
PLATFORMS="~amd64"

DEPENDENCIES="
    build:
        dev-lang/python:*[>=3]
        dev-libs/fmt
        dev-libs/tlottie
        gnome-desktop/gobject-introspection
        virtual/pkg-config
        x11-libs/qtshadertools:6

    build+run:
        dev-cpp/ada
        dev-libs/boost
        dev-libs/glib:2
        dev-libs/libfido2
        dev-libs/openssl
        dev-libs/protobuf[>=21.12]
        gnome-bindings/glibmm:2.68[>=2.77]
        media-libs/libjpeg-turbo
        media-libs/libvpx
        media-libs/openal
        media-libs/openh264
        media-libs/opus
        media-libs/rnnoise
        media-libs/tg_owt
        media/ffmpeg[>=6]
        net-libs/tde2e
        sys-apps/systemd
        sys-libs/zlib
        x11-libs/pango
        x11-libs/qtbase:6[>=6.5][gui]
        x11-libs/qtsvg:6[>=6.5]

    run:
        x11-libs/qtimageformats:6[webp]
"

CMAKE_SOURCE="${WORKBASE}/AyuGramDesktop-${PV}-full"

CMAKE_SRC_CONFIGURE_PARAMS=(
    -DQT_VERSION_MAJOR=6
    -DDESKTOP_APP_USE_PACKAGED=ON
    -DDESKTOP_APP_DISABLE_AUTOUPDATE=ON
    -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON
    -DDESKTOP_APP_DISABLE_QT_PLUGINS=ON
    -DQSB_EXECUTABLE=/usr/$(exhost --target)/lib/qt6/bin/qsb
    -DTDESKTOP_API_ID=611335
    -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c
)

src_configure() {
    append-cxxflags -DNDEBUG
    cmake_src_configure
}

src_install() {
    cmake_src_install
    dodoc "${CMAKE_SOURCE}/LICENSE" "${CMAKE_SOURCE}/LEGAL"
}