blob: c124677dc19257f4de14071e907ac6a615dddd97 (
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
134
|
# Maintainer: Francesco Minnocci <ascoli dot minnocci at gmail dot com>
pkgname=kotatogram-dev-git
_pkgname=kotatogram-desktop
pkgver=r10100.2eabfee52
pkgrel=1
pkgdesc="Kotatogram – experimental Telegram Desktop fork - Dev branch"
arch=(x86_64)
url="https://github.com/kotatogram/kotatogram-desktop"
license=(GPL3)
depends=(
qt5-imageformats
gtk3
ffmpeg
openal
glibmm
kwayland
lz4
xxhash
minizip
libdbusmenu-qt5
hunspell
)
makedepends=(
cmake
git
ninja
python
range-v3
tl-expected
microsoft-gsl
libtg_owt
)
optdepends=(
'ttf-opensans: default Open Sans font family'
)
conflicts=('kotatogram-desktop')
provides=('kotatogram-desktop')
source=(
"${_pkgname}::git+${url}.git"
"${_pkgname}-libtgvoip::git+https://github.com/telegramdesktop/libtgvoip"
"${_pkgname}-rlottie::git+https://github.com/desktop-app/rlottie.git"
"${_pkgname}-lib_crl::git+https://github.com/desktop-app/lib_crl.git"
"${_pkgname}-lib_rpl::git+https://github.com/desktop-app/lib_rpl.git"
"${_pkgname}-lib_base::git+https://github.com/kotatogram/lib_base.git"
"${_pkgname}-codegen::git+https://github.com/desktop-app/codegen.git"
"${_pkgname}-lib_ui::git+https://github.com/kotatogram/lib_ui.git"
"${_pkgname}-lib_rlottie::git+https://github.com/desktop-app/lib_rlottie.git"
"${_pkgname}-lib_lottie::git+https://github.com/desktop-app/lib_lottie.git"
"${_pkgname}-lib_tl::git+https://github.com/desktop-app/lib_tl.git"
"${_pkgname}-lib_spellcheck::git+https://github.com/desktop-app/lib_spellcheck"
"${_pkgname}-lib_storage::git+https://github.com/desktop-app/lib_storage.git"
"${_pkgname}-cmake_helpers::git+https://github.com/kotatogram/cmake_helpers.git"
"${_pkgname}-QR-Code-generator::git+https://github.com/nayuki/QR-Code-generator"
"${_pkgname}-lib_qr::git+https://github.com/desktop-app/lib_qr.git"
"${_pkgname}-lib_webrtc::git+https://github.com/desktop-app/lib_webrtc.git"
"${_pkgname}-tgcalls::git+https://github.com/TelegramMessenger/tgcalls.git"
"0001-Add-an-option-to-hide-messages-from-blocked-users-in.patch"
)
sha512sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'13357d081fb658c735bb2575360f5d48214e1cf5002719ba410405a2fe05c7c3d2379588c2ca3c2ca6a5e6ff64e01e6d1ff3aecdaee8f3dd0519a64f6ee94182')
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_pkgname}"
git submodule init
git config submodule.Telegram/ThirdParty/libtgvoip.url "${srcdir}/${_pkgname}-libtgvoip"
git config submodule.Telegram/ThirdParty/rlottie.url "${srcdir}/${_pkgname}-rlottie"
git config submodule.Telegram/lib_crl.url "${srcdir}/${_pkgname}-lib_crl"
git config submodule.Telegram/lib_rpl.url "${srcdir}/${_pkgname}-lib_rpl"
git config submodule.Telegram/lib_base.url "${srcdir}/${_pkgname}-lib_base"
git config submodule.Telegram/codegen.url "${srcdir}/${_pkgname}-codegen"
git config submodule.Telegram/lib_ui.url "${srcdir}/${_pkgname}-lib_ui"
git config submodule.Telegram/lib_rlottie.url "${srcdir}/${_pkgname}-lib_rlottie"
git config submodule.Telegram/lib_lottie.url "${srcdir}/${_pkgname}-lib_lottie"
git config submodule.Telegram/lib_tl.url "${srcdir}/${_pkgname}-lib_tl"
git config submodule.Telegram/lib_spellcheck.url "${srcdir}/${_pkgname}-lib_spellcheck"
git config submodule.Telegram/lib_storage.url "${srcdir}/${_pkgname}-lib_storage"
git config submodule.cmake.url "${srcdir}/${_pkgname}-cmake_helpers"
git config submodule.Telegram/ThirdParty/QR.url "${srcdir}/${_pkgname}-QR-Code-generator"
git config submodule.Telegram/lib_qr.url "${srcdir}/${_pkgname}-lib_qr"
git config sumbodule.Telegram/lib_webrtc.url "${srcdir}/${_pkgname}-lib_webrtc"
git config sumbodule.Telegram/ThirdParty/tgcalls.url "${srcdir}/${_pkgname}-tgcalls"
git submodule update
pushd cmake
# force webrtc link to libjpeg
echo "target_link_libraries(external_webrtc INTERFACE jpeg)" | tee -a external/webrtc/CMakeLists.txt
popd
patch -p1 < ${srcdir}/0001-Add-an-option-to-hide-messages-from-blocked-users-in.patch
}
build() {
cd "${srcdir}/${_pkgname}/"
cmake . \
-B build \
-G Ninja \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_BUILD_TYPE=Release \
-DTDESKTOP_API_TEST=ON
cmake --build build
}
package() {
cd "${srcdir}/${_pkgname}"
DESTDIR="$pkgdir" ninja -C build install
}
# vim:set ts=2 sw=2 et:
|