blob: 6847360e1738d0929e7c36160261cbaa9d67fe29 (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
# Maintainer: Ilya Fedin <fedin-ilja2010@ya.ru>
# Contributor: Auteiy <dmitry@auteiy.me>
pkgname=kotatogram-desktop
pkgver=1.1.4
pkgrel=1
pkgdesc="Kotatogram – experimental Telegram Desktop fork"
arch=(x86_64)
url="https://kotatogram.github.io"
license=(GPL3)
depends=(
qt5-base
qt5-imageformats
ffmpeg
openal
xz
lz4
xxhash
zlib
minizip
openssl
libtgvoip
rlottie-tdesktop
hicolor-icon-theme
desktop-file-utils
)
makedepends=(
git
python
cmake
ninja
range-v3
enchant
)
optdepends=(
'enchant: spellchecking support'
'ttf-opensans: default Open Sans font family'
)
conflicts=('kotatogram-desktop-bin' 'kotatogram-desktop-dynamic-bin')
source=(
"${pkgname}::git+https://github.com/kotatogram/${pkgname}.git#tag=k${pkgver}"
"Catch2::git+https://github.com/catchorg/Catch2.git"
"crl::git+https://github.com/telegramdesktop/crl.git"
"GSL::git+https://github.com/Microsoft/GSL.git"
"libtgvoip::git+https://github.com/telegramdesktop/libtgvoip.git"
"lz4::git+https://github.com/lz4/lz4.git"
"rlottie::git+https://github.com/desktop-app/rlottie.git"
"variant::git+https://github.com/mapbox/variant.git"
"xxHash::git+https://github.com/Cyan4973/xxHash.git"
"codegen::git+https://github.com/desktop-app/codegen.git"
"lib_base::git+https://github.com/desktop-app/lib_base.git"
"lib_crl::git+https://github.com/desktop-app/lib_crl.git"
"lib_lottie::git+https://github.com/desktop-app/lib_lottie.git"
"lib_rlottie::git+https://github.com/desktop-app/lib_rlottie.git"
"lib_rpl::git+https://github.com/desktop-app/lib_rpl.git"
"lib_spellcheck::git+https://github.com/desktop-app/lib_spellcheck.git"
"lib_tl::git+https://github.com/desktop-app/lib_tl.git"
"lib_ui::git+https://github.com/kotatogram/lib_ui.git"
"Use-system-font.patch"
"system-tray-icon.patch"
"linux-autostart.patch"
)
sha512sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'c8a8227f62e5c3927d330c225a915247e0eb1c9f4ce0d1747cbfe7e2e3ab645c30b3931ec898cc4525c73542ec70f4e3f0fe1d4a9a1be639354c3a709fc94f87'
'6bdb73dd7ebd8cd50da0f09f2f1fa201e687fee949c4a05f90e62e7e6167ccca877a078021ca611ce8fbb464aab329b92270f07e0cb770c2b7a89a436d37549a'
'e31829d114e20870493292d8add8094f1f3709e8dabc4f7e657bba6dc00933ebeb61c5755d3e770ea2922f9e2321d96f6982f6dcea500c98f1daa4c52e951d95')
prepare() {
cd "$srcdir/$pkgname"
git submodule init
git config submodule.Telegram/ThirdParty/Catch.url "$srcdir/Catch2"
git config submodule.Telegram/ThirdParty/crl.url "$srcdir/crl"
git config submodule.Telegram/ThirdParty/GSL.url "$srcdir/GSL"
git config submodule.Telegram/ThirdParty/libtgvoip.url "$srcdir/libtgvoip"
git config submodule.Telegram/ThirdParty/lz4.url "$srcdir/lz4"
git config submodule.Telegram/ThirdParty/rlottie.url "$srcdir/rlottie"
git config submodule.Telegram/ThirdParty/SPMediaKeyTap.url "$srcdir/SPMediaKeyTap"
git config submodule.Telegram/ThirdParty/variant.url "$srcdir/variant"
git config submodule.Telegram/ThirdParty/xxHash.url "$srcdir/xxHash"
git config submodule.Telegram/codegen.url "$srcdir/codegen"
git config submodule.Telegram/lib_base.url "$srcdir/lib_base"
git config submodule.Telegram/lib_crl.url "$srcdir/lib_crl"
git config submodule.Telegram/lib_lottie.url "$srcdir/lib_lottie"
git config submodule.Telegram/lib_rlottie.url "$srcdir/lib_rlottie"
git config submodule.Telegram/lib_rpl.url "$srcdir/lib_rpl"
git config submodule.Telegram/lib_spellcheck.url "$srcdir/lib_spellcheck"
git config submodule.Telegram/lib_tl.url "$srcdir/lib_tl"
git config submodule.Telegram/lib_ui.url "$srcdir/lib_ui"
git submodule update
patch -Np1 -i "$srcdir/Use-system-font.patch"
patch -Np1 -i "$srcdir/system-tray-icon.patch"
patch -Np1 -i "$srcdir/linux-autostart.patch"
}
build() {
cd "$srcdir/$pkgname"
cmake -G Ninja . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DTDESKTOP_API_TEST=ON \
-DTDESKTOP_DISABLE_GTK_INTEGRATION=ON
cmake --build .
}
package() {
cd "$srcdir/$pkgname"
DESTDIR="$pkgdir" cmake --install .
}
|