Package Details: forkgram 4.16-1

Git Clone URL: https://aur.archlinux.org/forkgram.git (read-only, click to copy)
Package Base: forkgram
Description: Fork of Telegram Desktop messaging app.
Upstream URL: https://github.com/Forkgram/tdesktop
Keywords: forkgram telegram-fork
Licenses: GPL3
Conflicts: forkgram-bin, telegram-desktop
Provides: forkgram-bin
Submitter: ptr1337
Maintainer: ptr1337 (sir_lucjan, SoulHarsh007)
Last Packager: ptr1337
Votes: 3
Popularity: 0.85
First Submitted: 2022-02-05 16:05 (UTC)
Last Updated: 2024-04-03 18:28 (UTC)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

figue commented on 2023-08-03 15:37 (UTC)

@shanoaice thank you very much. That confirms what I was reading... I also tried exactly what you already post.

For now I have switched back to latest release that works with 2.76.

I don't really understand what Telegram developers are doing with 2.77...

shanoaice commented on 2023-08-03 10:29 (UTC) (edited on 2023-08-03 10:44 (UTC) by shanoaice)

@figue Arch does not seem to package glib2 2.77 suites since they are considered devel, and I've tried to build it manually from Arch Build System. glib2 builds but does not work properly at all (test also fails), so you probably have to wait for 2.77 to become stable and gets into Arch's repo.

Just for reference, here is the build process (that does not work): refer to https://wiki.archlinux.org/title/Arch_build_system#Using_the_pkgctl_tool to get the PKGBUILDS of glib2 and glibmm-2.68.

First build glib2-2.77.1, modify pkgver to 2.77.1 and _commit to "e1f4c5806f755756a0af137bd1577216c52f7881" (tags/2.77.1^0), then comment out these lines in prepare():

git apply -3 ../0002-glocalfile-Sum-apparent-size-only-for-files-and-syml.patch
git apply -3 ../0003-tests-file-Do-not-rely-on-du-bytes-behaviour.patch

since the corresponding changes has been merged in 2.77.1, then build glib2 with gcc and --nocheck (test suite will fail to pass).

Then build glibmm-2.68-2.77.0. Modify pkgver, then modify _commit to "720c7fd69e65a1ccc621edac9ce98f0c4931d1d1". After that, build it with either gcc/clang and --nocheck (test suite will also fail if you run them).

Make sure gobject-introspection is installed, forkgram requires this to build but it is oddly not in the makedeps list.

figue commented on 2023-07-24 08:37 (UTC)

Hi @ptr1337

It doesn't build for me:

--   Package dependency requirement 'glibmm-2.68 >= 2.77' could not be satisfied.
Package 'glibmm-2.68' has version '2.76.0', required version is '>= 2.77'
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:607 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal)
  cmake/external/glibmm/CMakeLists.txt:11 (pkg_check_modules)


-- Configuring incomplete, errors occurred!

ptr1337 commented on 2022-07-22 17:39 (UTC)

@Alireza

i think i could move and rename the binary, but I dont think It is really worth to do that right now. Ill have a watch and let you know

Alireza commented on 2022-07-17 06:29 (UTC)

Hi, Is it possible to install forkgram alongside telegram??

this package has conflict with telegram-desktop and the other package breaks telegram-desktop after installation (forkgram opens telegram-desktop)

does it need a maintenance by programmer?

ptr1337 commented on 2022-06-23 18:16 (UTC)

4.0.0 seems to compile without problems again. Finally.

ptr1337 commented on 2022-06-11 21:42 (UTC)

@KspLite

Same for me, seems to be a upstream bug.

intro18 commented on 2022-06-03 02:05 (UTC) (edited on 2022-06-04 04:29 (UTC) by intro18)

Can't build. [147/147] Linking CXX static library lib/libKF5WaylandClient.a ninja: build stopped: subcommand failed. ==> ERROR: A failure occurred in build(). Aborting... Please help.

ptr1337 commented on 2022-04-18 15:30 (UTC)

Thanks, did fixed it

medzik commented on 2022-03-19 14:13 (UTC) (edited on 2022-03-19 14:13 (UTC) by medzik)

# Maintainer: Peter Jung ptr1337 <admin@ptr1337.dev>
# Contributor: MedzikUser <nivua1fn@duck.com>

pkgname=forkgram
_pkgname=frk
pkgver=3.6.1
pkgrel=1
pkgdesc='Fork of Telegram Desktop messaging app.'
arch=('x86_64' 'x86_64_v3')
url="https://github.com/Forkgram/tdesktop"
license=('GPL3')
depends=('hunspell' 'ffmpeg4.4' 'hicolor-icon-theme' 'lz4' 'minizip' 'openal' 'ttf-opensans'
         'qt6-imageformats' 'qt6-svg' 'qt6-wayland' 'qt6-5compat' 'xxhash' 'glibmm'
         'rnnoise' 'pipewire' 'libxtst' 'libxrandr' 'jemalloc' 'abseil-cpp' 'libdispatch')
makedepends=('cmake' 'git' 'ninja' 'python' 'range-v3' 'tl-expected' 'microsoft-gsl' 'meson'
             'extra-cmake-modules' 'wayland-protocols' 'plasma-wayland-protocols' 'libtg_owt')
optdepends=('gtk3: GTK environment integration'
            'webkit2gtk: embedded browser features'
            'xdg-desktop-portal: desktop integration')
provides=("telegram-desktop")
conflicts=("telegram-desktop" "tdesktop-x64")
replaces=("tdesktop-x64")
source=("https://github.com/Forkgram/tdesktop/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-full.tar.gz")
sha512sums=('edd299332e941384ff82c58a7c978f5b6e43dc24f8272a03a0efc0650868d26c3309d388abc7f4b8a06157ab5f81fc79a4d76c7d6e18394277900839392a98b8')

build() {
    cd $_pkgname-v$pkgver-full

    # Fix https://bugs.archlinux.org/task/73220
    export CXXFLAGS+=" -Wp,-U_GLIBCXX_ASSERTIONS"

    export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'

    # Official API ID&Hash by default
    cmake . \
        -B build \
        -G Ninja \
        -DCMAKE_INSTALL_PREFIX="/usr" \
        -DCMAKE_BUILD_TYPE=Release \
        -DTDESKTOP_API_ID=611335 \
        -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c \
        -DDESKTOP_APP_DISABLE_AUTOUPDATE=ON

    # Hack to compile for ffmpeg4.4
    sed -i "s|/usr/lib/libav|/usr/lib/ffmpeg4.4/libav|g" build/build.ninja
    sed -i "s|/usr/lib/libsw|/usr/lib/ffmpeg4.4/libsw|g" build/build.ninja
    sed -i "s|-lavcodec|/usr/lib/ffmpeg4.4/libavcodec.so|g" build/build.ninja
    sed -i "s|-lavformat|/usr/lib/ffmpeg4.4/libavformat.so|g" build/build.ninja
    sed -i "s|-lavutil|/usr/lib/ffmpeg4.4/libavutil.so|g" build/build.ninja
    sed -i "s|-lswscale|/usr/lib/ffmpeg4.4/libswscale.so|g" build/build.ninja
    sed -i "s|-lswresample|/usr/lib/ffmpeg4.4/libswresample.so|g" build/build.ninja

    ninja -C build
}

package() {
    cd $_pkgname-v$pkgver-full
    DESTDIR=$pkgdir ninja -C build install
}

@ptr1337 now the error does not occur