claugram-desktop-git
LOW
maintainer kekmacska
0 votes
scanned 2026-08-19 03:41:13.749572
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: kekmacska
2
# Based on: ayugram-desktop-git by westpain and rikki48
3
4
_pkgname="claugram-desktop"
5
pkgname="$_pkgname-git"
6
pkgver=0.r24983.5d34672586
7
pkgrel=1
8
pkgdesc="A fork of Telegram Desktop focused on: Trust, UX, ToS compliance, Staying current"
9
url="https://github.com/alexto9090/claugram"
10
license=('GPL-3.0-or-later')
11
arch=('x86_64' 'aarch64')
12
depends=(
13
ada
14
ffmpeg
15
hunspell
16
kcoreaddons
17
libavif
18
libdispatch
19
libheif
20
libjxl
21
libvpx
22
libxdamage
23
minizip-ng
24
openal
25
openh264
26
opus
27
protobuf
28
qt6-base
29
qt6-imageformats
30
qt6-svg
31
qt6-wayland
32
rnnoise
33
xcb-util-keysyms
34
xxhash
35
36
## for libtg_owt
37
libpipewire
38
libxcomposite
39
libxrandr
40
libxtst
41
)
42
makedepends=(
43
boost
44
boost-libs
45
cmake
46
extra-cmake-modules
47
fmt
48
git
49
glib2-devel
50
gobject-introspection
51
gperf # tdlib
52
jemalloc
53
libtg_owt
54
ninja
55
range-v3
56
tl-expected
57
)
58
optdepends=(
59
'webkit2gtk: embedded browser features'
60
'xdg-desktop-portal: desktop integration'
61
)
62
provides=("$_pkgname")
63
conflicts=("$_pkgname")
64
source=(
65
"$_pkgname"::"git+$url.git"
66
"telegram-tdlib"::"git+https://github.com/tdlib/td.git"
67
)
68
sha256sums=('SKIP' 'SKIP')
69
70
71
pkgver() {
72
cd "$_pkgname"
73
74
if ! git describe --tags >/dev/null 2>&1; then
75
printf "0.r%s.%s" \
76
"$(git rev-list --count HEAD)" \
77
"$(git rev-parse --short HEAD)"
78
return
79
fi
80
81
git describe --long --tags --abbrev=7 --exclude='*[a-zA-Z][a-zA-Z]*' \
82
| sed -E 's/^[^0-9]+//;s/([^-]*-g)/r\1/;s/-/./g'
83
}
84
85
prepare() {
86
cd "$_pkgname"
87
git rm -r 'Telegram/ThirdParty/dispatch' || true
88
git rm -r 'Telegram/ThirdParty/hunspell' || true
89
git rm -r 'Telegram/ThirdParty/kcoreaddons' || true
90
git rm -r 'Telegram/ThirdParty/lz4' || true
91
git rm -r 'Telegram/ThirdParty/range-v3' || true
92
git submodule update --init --recursive --depth=1
93
94
local src
95
for src in "${source[@]}"; do
96
src="${src%%::*}"
97
src="${src##*/}"
98
src="${src%.zst}"
99
if [[ $src == *.patch ]]; then
100
printf '\nApplying patch: %s\n' "$src"
101
patch -Np1 -F100 -i "${srcdir:?}/$src" || true
102
fi
103
done
104
105
# force system minizip-ng
106
rm -rf "Telegram/ThirdParty/minizip"
107
sed -i 's/IMPORTED_TARGET minizip/IMPORTED_TARGET minizip-ng/' cmake/external/minizip/CMakeLists.txt
108
109
# add missing headers for gcc 16
110
sed -E -e '1i #include <cstdint>' -i \
111
"Telegram/ThirdParty/tgcalls/tgcalls/DirectConnectionChannel.h" \
112
"Telegram/ThirdParty/tgcalls/tgcalls/third-party/json11.cpp" \
113
"Telegram/ThirdParty/tgcalls/tgcalls/v2/SignalingConnection.h"
114
115
svgo . -r --multipass || true
116
oxipng -o max -r -p -s -v -t $(nproc) -z --zi 100 --ziwi 10 --brute-level 5 --brute-lines 16 . || true
117
}
118
119
build() {
120
BASE_CFLAGS="-O3 -march=native -mtune=native \
121
-falign-functions=32 -falign-loops=32 \
122
-fno-math-errno -fno-trapping-math \
123
-fno-semantic-interposition \
124
-fomit-frame-pointer -fno-plt \
125
-pipe -flto -Wall -Wno-unused \
126
-fstrict-aliasing \
127
-fmerge-all-constants -ffunction-sections \
128
-fdata-sections"
129
130
BASE_CXXFLAGS="$BASE_CFLAGS"
131
BASE_LDFLAGS="-Wl,--icf=safe -Wl,--gc-sections -Wl,-O3 -flto -fno-plt"
132
133
# Clang-only flags
134
CLANG_EXTRA_CFLAGS="-fstrict-vtable-pointers -fno-asynchronous-unwind-tables"
135
CLANG_EXTRA_CXXFLAGS="$CLANG_EXTRA_CFLAGS"
136
CLANG_EXTRA_LDFLAGS="-fuse-ld=lld"
137
138
# Detect compiler
139
if command -v clang >/dev/null 2>&1; then
140
export CC=clang
141
export CXX=clang++
142
export CFLAGS="$BASE_CFLAGS $CLANG_EXTRA_CFLAGS"
143
export CXXFLAGS="$BASE_CXXFLAGS $CLANG_EXTRA_CXXFLAGS"
144
export LDFLAGS="$BASE_LDFLAGS $CLANG_EXTRA_LDFLAGS"
145
else
146
export CC=gcc
147
export CXX=g++
148
export CFLAGS="$BASE_CFLAGS"
149
export CXXFLAGS="$BASE_CXXFLAGS"
150
export LDFLAGS="$BASE_LDFLAGS"
151
fi
152
153
printf "\nBuilding tde2e..."
154
local _cmake_tde2e=(
155
-B "build_tde2e"
156
-S "telegram-tdlib"
157
-G Ninja
158
-DCMAKE_BUILD_TYPE=None
159
-DCMAKE_INSTALL_PREFIX=/usr
160
-DTD_E2E_ONLY=ON
161
-DBUILD_SHARED_LIBS=OFF
162
-DBUILD_TESTING=OFF
163
-Wno-author
164
)
165
166
cmake "${_cmake_tde2e[@]}"
167
cmake --build "build_tde2e" -j$(nproc)
168
DESTDIR="$srcdir/deps" cmake --install "build_tde2e"
169
170
printf "\nBuilding ayugram..."
171
local _cmake_options=(
172
-B build
173
-S "$_pkgname"
174
-G Ninja
175
-DCMAKE_BUILD_TYPE=None
176
-DCMAKE_INSTALL_PREFIX=/usr
177
-DCMAKE_PREFIX_PATH="$srcdir/deps/usr"
178
-DDESKTOP_APP_DISABLE_AUTOUPDATE=ON
179
-DTDESKTOP_API_ID=611335
180
-DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c
181
-DDESKTOP_APP_USE_PACKAGED_FONTS=OFF
182
-Wno-author
183
)
184
185
cmake "${_cmake_options[@]}"
186
cmake --build build -j$(nproc)
187
}
188
189
package() {
190
DESTDIR="$pkgdir" cmake --install build
191
192
# Rename Telegram icons if any exist
193
if command -v fd >/dev/null 2>&1; then
194
while IFS= read -r -d '' f; do
195
mv "$f" "${f/org.telegram.desktop/claugram}"
196
done < <(
197
fd -0 -t f 'org\.telegram\.desktop.*' \
198
"$pkgdir/usr/share/icons"
199
)
200
else
201
while IFS= read -r -d '' f; do
202
mv "$f" "${f/org.telegram.desktop/claugram}"
203
done < <(
204
find "$pkgdir/usr/share/icons" \
205
-type f \
206
-name 'org.telegram.desktop*' \
207
-print0
208
)
209
fi
210
211
cat > "$pkgdir/usr/share/applications/claugram.desktop" <<'EOF'
212
[Desktop Entry]
213
Version=1.0
214
Type=Application
215
Name=ClauGram
216
GenericName=Messenger
217
Comment=A fork of Telegram Desktop focused on: Trust, UX, ToS compliance, Staying current
218
Exec=ClauGram -- %U
219
TryExec=ClauGram
220
Icon=claugram
221
Terminal=false
222
StartupWMClass=TelegramDesktop
223
Categories=Chat;Network;InstantMessaging;Qt;
224
MimeType=x-scheme-handler/tg;x-scheme-handler/tonsite;
225
Keywords=tg;telegram;chat;messenger;
226
SingleMainWindow=true
227
X-GNOME-UsesNotifications=true
228
X-GNOME-SingleWindow=true
229
Actions=quit;
230
231
[Desktop Action quit]
232
Name=Quit ClauGram
233
Exec=ClauGram -quit
234
Icon=application-exit
235
EOF
236
237
# Update AppStream metadata if present
238
if [[ -f "$pkgdir/usr/share/metainfo/org.claugram.desktop.metainfo.xml" ]]; then
239
sed -i \
240
-e 's/org\.telegram\.desktop/org.claugram.desktop/g' \
241
-e 's/Telegram Desktop/ClauGram/g' \
242
-e 's/>Telegram</>ClauGram</g' \
243
"$pkgdir/usr/share/metainfo/org.claugram.desktop.metainfo.xml"
244
fi
245
246
# Update D-Bus service if present
247
if [[ -f "$pkgdir/usr/share/dbus-1/services/org.claugram.desktop.service" ]]; then
248
cat > "$pkgdir/usr/share/dbus-1/services/org.claugram.desktop.service" <<'EOF'
249
[D-BUS Service]
250
Name=org.claugram.desktop
251
Exec=/usr/bin/ClauGram
252
EOF
253
fi
254
}
255
Changes since previous scan
--- PKGBUILD @ 2026-08-12 00:27+++ PKGBUILD @ 2026-08-19 03:41@@ -3,7 +3,7 @@ _pkgname="claugram-desktop" pkgname="$_pkgname-git"-pkgver=0.r24982.5def774526+pkgver=0.r24983.5d34672586 pkgrel=1 pkgdesc="A fork of Telegram Desktop focused on: Trust, UX, ToS compliance, Staying current" url="https://github.com/alexto9090/claugram"@@ -128,7 +128,7 @@ -fdata-sections" BASE_CXXFLAGS="$BASE_CFLAGS"- BASE_LDFLAGS="-Wl,--icf=safe -Wl,--gc-sections -flto -fno-plt"+ BASE_LDFLAGS="-Wl,--icf=safe -Wl,--gc-sections -Wl,-O3 -flto -fno-plt" # Clang-only flags CLANG_EXTRA_CFLAGS="-fstrict-vtable-pointers -fno-asynchronous-unwind-tables"Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-19 03:41:13 | Low | 1 |
| 2026-08-12 00:27:08 | Clean | 2 |
| 2026-08-11 13:21:13 | Low | 1 |