telegram-drive-appimage
The package extracts and installs an AppImage from the project's official GitHub release, which is a normal AUR practice; the AppImage is from a trusted project source, and the build process uses it to provide a native-like installation without running untrusted remote code.
Triggered rules
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package extracts and installs an AppImage from the project's official GitHub release, which is a normal AUR practice; the AppImage is from a trusted project source, and the build process uses it to provide a native-like installation without running untrusted remote code.
PKGBUILD
# Maintainer: guglovich <guglovich164@gmail.com>
# Created with assistance from GLM 5.3 Flash.
pkgname=telegram-drive-appimage
pkgver=4.0.0
pkgrel=1
pkgdesc="Turn your Telegram account into an unlimited, secure cloud storage drive (from AppImage)"
arch=('x86_64')
url="https://github.com/caamer20/Telegram-Drive"
license=('LicenseRef-Upstream-Unspecified')
depends=(
'cairo'
'dbus'
'gdk-pixbuf2'
'glib2'
'gtk3'
'hicolor-icon-theme'
'libayatana-appindicator'
'libsoup3'
'webkit2gtk-4.1'
)
makedepends=('squashfs-tools')
optdepends=(
'ffmpeg: HLS media transcoding'
'gnome-keyring: persistent credential storage'
)
options=('!strip' '!debug')
source=("${pkgname}-${pkgver}.AppImage::https://github.com/caamer20/Telegram-Drive/releases/download/v${pkgver}/Telegram.Drive_${pkgver}_amd64.AppImage"
"LICENSE::https://raw.githubusercontent.com/caamer20/Telegram-Drive/v${pkgver}/packaging/arch/UPSTREAM-LICENSE-NOTICE")
sha256sums=('0f3e33f1ac5f5480b1b0d1eba5d3c1778c33ea437c7a680ffe57c3338346e02b'
'164994ae2a66a7215deca4a6ebf5822cc1d67737c5c1e1ba2f32b28016e0d6fb')
prepare() {
cp -L "${srcdir}/${pkgname}-${pkgver}.AppImage" "${srcdir}/real-appimage"
chmod +x "${srcdir}/real-appimage"
"${srcdir}/real-appimage" --appimage-extract >/dev/null 2>&1
}
package() {
cd "${srcdir}/squashfs-root"
# Ставим сам бинарник из AppImage, а не AppImage-рантайм.
# Внутри AppImage вшиты свои GTK/WebKit: на части систем (в т.ч. без
# аппаратного GL) WebKit не инициализируется ("Could not create default
# EGL display") и окно остаётся пустым тёмным прямоугольником.
# Бинарник же линкуется динамически и отлично работает с системными
# библиотеками — так же, как и upstream .deb/.rpm-пакеты.
install -Dm755 "usr/bin/app" "${pkgdir}/usr/lib/telegram-drive/app"
local icon
while IFS= read -r -d '' icon; do
install -Dm644 "${icon}" \
"${pkgdir}/${icon/apps\/app.png/apps\/com.cameronamer.telegramdrive.png}"
done < <(find usr/share/icons/hicolor -type f -path '*/apps/app.png' -print0)
install -dm755 "${pkgdir}/usr/bin"
cat > "${pkgdir}/usr/bin/telegram-drive" << 'EOF'
#!/bin/sh
# Pacman владеет установкой: приложение может проверять обновления,
# но не должно менять файлы в /usr через self-updater Tauri.
export TELEGRAM_DRIVE_PACKAGE_MANAGER=pacman
exec /usr/lib/telegram-drive/app "$@"
EOF
chmod 755 "${pkgdir}/usr/bin/telegram-drive"
install -dm755 "${pkgdir}/usr/share/applications"
cat > "${pkgdir}/usr/share/applications/com.cameronamer.telegramdrive.desktop" << 'EOF'
[Desktop Entry]
Type=Application
Name=Telegram Drive
Comment=Browse and manage files stored in your Telegram account
Exec=telegram-drive
Icon=com.cameronamer.telegramdrive
Terminal=false
Categories=Network;FileTransfer;Utility;
StartupWMClass=app
StartupNotify=true
EOF
install -Dm644 "${srcdir}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-06 00:13:36 | Low | 2 |
| 2026-10-05 23:40:58 | Low | 2 |