Package Details: forkgram-bin 4.14.12-1

Git Clone URL: (read-only, click to copy)
Package Base: forkgram-bin
Description: Forkgram is the fork of the official Telegram Desktop application - Static binary
Upstream URL:
Licenses: GPL3
Submitter: figue
Maintainer: figue
Last Packager: figue
Votes: 1
Popularity: 0.037728
First Submitted: 2021-10-07 22:52 (UTC)
Last Updated: 2024-04-03 20:19 (UTC)

Dependencies (9)

Required by (0)

Sources (10)

Latest Comments

tyler19820201 commented on 2023-09-21 07:28 (UTC) (edited on 2023-09-21 07:32 (UTC) by tyler19820201)

@figue Nice one. Thanks!

figue commented on 2023-09-19 21:49 (UTC)

@tyler19820201 it's fixed now! Thank you for the advice

tyler19820201 commented on 2023-09-19 20:37 (UTC)

"One or more files did not pass the validity check!" I have got this error when i try to update.

figue commented on 2023-04-25 19:44 (UTC)

Hi @Baldo. Please don't flag as out-of-date if upstream doesn't push the binary file. See my previous comment.

figue commented on 2022-07-24 09:36 (UTC)

Hi @toitenminh. This a binary package, so we can't rebuilt it. Maybe you want to flag the forkgram package which is compiled by the user?

figue commented on 2021-12-11 15:17 (UTC) (edited on 2022-01-09 20:34 (UTC) by figue)

I've compiled Forkgram v3.3 in my laptop with official docker method. I don't know why in Github Linux action always fails... I've tried to fork the Forkgram repo and build it in github, but maybe it's overpassing the free limits. I'm not sure.

In any case, I can use this build for personal use, but I can't distribute. If anyone is interested, install docker and follow the official instructions. This is what I did:

$ sudo pacman -S docker
$ sudo systemctl start docker
$ git clone --recursive forkgram-repo
$ cd forkgram-repo
$ docker build -t tdesktop:centos_env Telegram/build/docker/centos_env
$ docker run --rm -it \
    -v $PWD:/usr/src/tdesktop \
    tdesktop:centos_env \
    /usr/src/tdesktop/Telegram/build/docker/centos_env/ \
    -D TDESKTOP_API_ID=611335 \
    -D TDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c \

ADVICE: this API_ID and API_HASH are the same used in Archlinux's community repo and AUR packages (telegram-desktop and telegram-desktop-git). You can generate your own if you want.

SECOND ADVICE: docker, by default, uses /var/lib/docker to start CentOS image and build inside all needed libraries, etc, so keep in mind you will need 25+ GB in /var and another 5 GB in folder you cloned github repo.

THIRD ADVICE: final binary will be located in out/Release/Telegram (around 763M no stripped, so you can strip this binary later: strip -p -o Forkgram out/Release/Telegram). Now you can copy your new Forkgram bin to forkgram-bin repo folder and change a couple of things to use as your source:

$ cd /home/figue/packages/forkgram-bin

Edit PKGBUILD_local and paste this

# Maintainer: Joan Figueras <ffigue at gmail dot com>
# Controbutor: Giovanni 'ItachiSan' Santini <>
# Contributor: silentnoodle <lonnqvistben at gmail dot com>
# Contributor: agnotek < [at]>

pkgdesc="Forkgram is the fork of the official Telegram Desktop application - Static binary"
    'libappindicator-gtk2: to hide Telegram in the tray bar in GTK2-based desktop environment'
    'libappindicator-gtk3: to hide Telegram in the tray bar in GTK3-based desktop environment'
    'xdg-utils: for automatic opening of URLs, files and directories in proper applications'

# Sources

# Checksums
# Some installation information

package() {

    cd "$srcdir/"

    # Creating needed directories
    install -dm755 "$pkgdir/usr/bin"
    install -dm755 "$pkgdir/usr/share/pixmaps/"
    install -dm755 "$pkgdir/usr/share/applications/"

    # Program
    install -Dm755 "$srcdir/Forkgram" "$pkgdir/usr/bin/Forkgram"

    # Remove RPATH informations
    chrpath --delete "$pkgdir/usr/bin/Forkgram"

    # Desktop launcher
    install -Dm644 "$srcdir/${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"

    # KDE5 & KDE4 protocol file
    install -d "$pkgdir/usr/share/kservices5"
    install -d "$pkgdir/usr/share/kde4/services"
    install -m644 "$srcdir/tg.protocol" "$pkgdir/usr/share/kservices5/tg.protocol"
    ln -s "/usr/share/kservices5/tg.protocol" "$pkgdir/usr/share/kde4/services"

    # Icons
    local icon_size icon_dir
    for icon_size in 16 32 48 64 128 256 512; do
        install -d "$icon_dir"
        install -m644 "$srcdir/icon${icon_size}.png" "$icon_dir/${_pkgname}.png"

    # Disable the official Telegram Desktop updater
    mkdir -p "$pkgdir/etc/tdesktop"
    echo "/usr/bin/Forkgram" > "$pkgdir/etc/tdesktop/externalupdater"

Then fix sums (your sum will be different than mine) and build it:

$ updpkgsums PKGBUILD_local
$ makepkg -sic -p PKGBUILD_local


PD: When you need to update:

$ git pull --recurse-submodules

Then run docker build just as before.

figue commented on 2021-12-10 14:18 (UTC)

@mcbelisle unfortunately, no binary version for Linux was released.

figue commented on 2021-12-06 00:29 (UTC)

@mcbelisle unfortunately this is a binary package and upstream linux compilation failed, so we have to keep this version for now.