Package Details: forkgram-bin 5.9.0-1

Git Clone URL: https://aur.archlinux.org/forkgram-bin.git (read-only, click to copy)
Package Base: forkgram-bin
Description: Forkgram is the fork of the official Telegram Desktop application - Static binary
Upstream URL: https://github.com/Forkgram/tdesktop
Licenses: GPL3
Submitter: figue
Maintainer: figue
Last Packager: figue
Votes: 4
Popularity: 0.67
First Submitted: 2021-10-07 22:52 (UTC)
Last Updated: 2024-12-04 22:43 (UTC)

Latest Comments

« First ‹ Previous 1 2

SkylerLinux commented on 2024-06-15 05:50 (UTC)

Current version of Forkgram is https://github.com/forkgram/tdesktop/releases/tag/v5.1.7

figue commented on 2024-06-14 19:04 (UTC) (edited on 2024-06-14 19:05 (UTC) by figue)

Please, don't flag out-of-date, as latest binary asset on github is https://github.com/forkgram/tdesktop/releases/tag/v4.14.12

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 https://github.com/Forkgram/tdeskop 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/build.sh \
    -D TDESKTOP_API_ID=611335 \
    -D TDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c \
    -D DESKTOP_APP_USE_PACKAGED=OFF \
    -D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF

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
$ cp -p PKGBUILD PKGBUILD_local

Edit PKGBUILD_local and paste this

# Maintainer: Joan Figueras <ffigue at gmail dot com>
# Controbutor: Giovanni 'ItachiSan' Santini <giovannisantini93@yahoo.it>
# Contributor: silentnoodle <lonnqvistben at gmail dot com>
# Contributor: agnotek <agnostic.sn [at]gmail.com>

pkgname=forkgram-bin
_pkgname=forkgram
pkgver=3.3
pkgrel=1
pkgdesc="Forkgram is the fork of the official Telegram Desktop application - Static binary"
arch=(x86_64)
url="https://github.com/Forkgram/tdesktop"
license=(GPL3)
depends=(
    desktop-file-utils
    glib2
    hicolor-icon-theme
    libdbus
    libx11
)
makedepends=(
    chrpath
)
optdepends=(
    '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
source=(
    "Forkgram"
    "$pkgname.desktop"
    tg.protocol
    https://raw.githubusercontent.com/Forkgram/tdesktop/dev/Telegram/Resources/art/icon{16,32,48,64,128,256,512}.png)
    #"${_pkgname}.png::https://user-images.githubusercontent.com/4051126/43634235-402a8b74-9714-11e8-85c0-8ceb0844a3b0.png"


# Checksums
sha256sums=('c3ff81ee0be59d8e134348df77511633e92f90b55cf5516d7774c2814f559fa0'
            '84a582c3bfd209b85727cfa88bfdea794e4bb6b60c6a449a411e105c5e1bd9f1'
            '9fd7d8ce9c4246ed414ddf15c2a19f6df1a749c1e6cb23ac1aac2fc0e6152fe7'
            '13c5b79d31f123ba4da10d57f93e11bf9490c78476dc44758a9d58f6b4488f0a'
            '371dfd02eb3f9a5e69d0a6dd81d931bfc9fdf749cf4700c9c8def82bf0452701'
            '36fe2468f41996ed464d39da17c1518c23e230569a10d32fa96c84a492a8e6c0'
            '6579cb28df4d36f0bb7944434c3c00b08f09f387d7c89e8e53c05af1f5b15d91'
            '0b8ab0a5f1dbd15e0496a119afb28f684e29b7fe731d5540a417b89195297022'
            'c51a86c6fef238ef3ba4e25337be44548e7f5d358faec8075980929581663c96'
            '11c609c98c14628f3bcef080be6e8005fc30b26aea01605a0c629f7e142065bf')
# Some installation information
install="$pkgname.install"

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
        icon_dir="$pkgdir/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps"
        install -d "$icon_dir"
        install -m644 "$srcdir/icon${icon_size}.png" "$icon_dir/${_pkgname}.png"
    done

    # 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

Enjoy.

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.